2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-02 07:15:23 +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/>. # along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
from .answer_callback_query import AnswerCallbackQuery from .answer_callback_query import AnswerCallbackQuery
from .get_game_high_scores import GetGameHighScores
from .get_inline_bot_results import GetInlineBotResults from .get_inline_bot_results import GetInlineBotResults
from .request_callback_answer import RequestCallbackAnswer from .request_callback_answer import RequestCallbackAnswer
from .send_game import SendGame from .send_game import SendGame
@@ -30,6 +31,7 @@ class Bots(
RequestCallbackAnswer, RequestCallbackAnswer,
SendInlineBotResult, SendInlineBotResult,
SendGame, SendGame,
SetGameScore SetGameScore,
GetGameHighScores
): ):
pass pass

View File

@@ -20,7 +20,7 @@ from typing import Union
import pyrogram import pyrogram
from pyrogram.api import functions from pyrogram.api import functions
from ...ext import BaseClient from pyrogram.client.ext import BaseClient
class GetGameHighScores(BaseClient): class GetGameHighScores(BaseClient):
@@ -45,6 +45,12 @@ class GetGameHighScores(BaseClient):
message_id (``int``, *optional*): message_id (``int``, *optional*):
Identifier of the sent message. Identifier of the sent message.
Required if inline_message_id is not specified. 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 # 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_reply_markup import EditMessageReplyMarkup
from .edit_message_text import EditMessageText from .edit_message_text import EditMessageText
from .forward_messages import ForwardMessages from .forward_messages import ForwardMessages
from .get_game_high_scores import GetGameHighScores
from .get_history import GetHistory from .get_history import GetHistory
from .get_messages import GetMessages from .get_messages import GetMessages
from .iter_history import IterHistory from .iter_history import IterHistory
@@ -34,7 +33,6 @@ from .send_audio import SendAudio
from .send_chat_action import SendChatAction from .send_chat_action import SendChatAction
from .send_contact import SendContact from .send_contact import SendContact
from .send_document import SendDocument from .send_document import SendDocument
from pyrogram.client.methods.bots.send_game import SendGame
from .send_location import SendLocation from .send_location import SendLocation
from .send_media_group import SendMediaGroup from .send_media_group import SendMediaGroup
from .send_message import SendMessage from .send_message import SendMessage
@@ -45,7 +43,6 @@ from .send_venue import SendVenue
from .send_video import SendVideo from .send_video import SendVideo
from .send_video_note import SendVideoNote from .send_video_note import SendVideoNote
from .send_voice import SendVoice from .send_voice import SendVoice
from pyrogram.client.methods.bots.set_game_score import SetGameScore
from .vote_poll import VotePoll from .vote_poll import VotePoll
@@ -77,9 +74,6 @@ class Messages(
ClosePoll, ClosePoll,
RetractVote, RetractVote,
DownloadMedia, DownloadMedia,
IterHistory, IterHistory
SendGame,
SetGameScore,
GetGameHighScores
): ):
pass pass