Move download_media into messages and media namespace

This commit is contained in:
Dan 2018-12-28 15:17:05 +01:00
parent 64ec26850e
commit 5dcc19cfb3
5 changed files with 5 additions and 29 deletions

View File

@ -65,6 +65,7 @@ Messages
send_poll
vote_poll
retract_vote
download_media
Chats
-----

View File

@ -23,7 +23,6 @@ from .decorators import Decorators
from .messages import Messages
from .password import Password
from .users import Users
from .utilities import Utilities
class Methods(
@ -32,7 +31,6 @@ class Methods(
Password,
Chats,
Users,
Utilities,
Messages,
Decorators
):

View File

@ -17,6 +17,7 @@
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
from .delete_messages import DeleteMessages
from .download_media import DownloadMedia
from .edit_message_caption import EditMessageCaption
from .edit_message_media import EditMessageMedia
from .edit_message_reply_markup import EditMessageReplyMarkup
@ -68,6 +69,7 @@ class Messages(
SendVoice,
SendPoll,
VotePoll,
RetractVote
RetractVote,
DownloadMedia
):
pass

View File

@ -20,7 +20,7 @@ from threading import Event
from typing import Union
import pyrogram
from ...ext import BaseClient
from pyrogram.client.ext import BaseClient
class DownloadMedia(BaseClient):

View File

@ -1,25 +0,0 @@
# Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Pyrogram is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
from .download_media import DownloadMedia
class Utilities(
DownloadMedia
):
pass