2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 06:16:06 +00:00

Move get_game_high_scores method into bots folder

This commit is contained in:
Dan
2019-01-07 22:35:17 +01:00
parent dc737ab7bb
commit ee472329a2
3 changed files with 11 additions and 9 deletions

View File

@@ -17,6 +17,7 @@
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
from .answer_callback_query import AnswerCallbackQuery
from .get_game_high_scores import GetGameHighScores
from .get_inline_bot_results import GetInlineBotResults
from .request_callback_answer import RequestCallbackAnswer
from .send_game import SendGame
@@ -30,6 +31,7 @@ class Bots(
RequestCallbackAnswer,
SendInlineBotResult,
SendGame,
SetGameScore
SetGameScore,
GetGameHighScores
):
pass

View File

@@ -20,7 +20,7 @@ from typing import Union
import pyrogram
from pyrogram.api import functions
from ...ext import BaseClient
from pyrogram.client.ext import BaseClient
class GetGameHighScores(BaseClient):
@@ -45,6 +45,12 @@ class GetGameHighScores(BaseClient):
message_id (``int``, *optional*):
Identifier of the sent message.
Required if inline_message_id is not specified.
Returns:
On success, a :obj:`GameHighScores <pyrogram.GameHighScores>` object is returned.
Raises:
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
"""
# TODO: inline_message_id

View File

@@ -24,7 +24,6 @@ from .edit_message_media import EditMessageMedia
from .edit_message_reply_markup import EditMessageReplyMarkup
from .edit_message_text import EditMessageText
from .forward_messages import ForwardMessages
from .get_game_high_scores import GetGameHighScores
from .get_history import GetHistory
from .get_messages import GetMessages
from .iter_history import IterHistory
@@ -34,7 +33,6 @@ from .send_audio import SendAudio
from .send_chat_action import SendChatAction
from .send_contact import SendContact
from .send_document import SendDocument
from pyrogram.client.methods.bots.send_game import SendGame
from .send_location import SendLocation
from .send_media_group import SendMediaGroup
from .send_message import SendMessage
@@ -45,7 +43,6 @@ from .send_venue import SendVenue
from .send_video import SendVideo
from .send_video_note import SendVideoNote
from .send_voice import SendVoice
from pyrogram.client.methods.bots.set_game_score import SetGameScore
from .vote_poll import VotePoll
@@ -77,9 +74,6 @@ class Messages(
ClosePoll,
RetractVote,
DownloadMedia,
IterHistory,
SendGame,
SetGameScore,
GetGameHighScores
IterHistory
):
pass