File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1717# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818
1919from .answer_callback_query import AnswerCallbackQuery
20+ from .get_game_high_scores import GetGameHighScores
2021from .get_inline_bot_results import GetInlineBotResults
2122from .request_callback_answer import RequestCallbackAnswer
2223from .send_game import SendGame
@@ -30,6 +31,7 @@ class Bots(
3031 RequestCallbackAnswer ,
3132 SendInlineBotResult ,
3233 SendGame ,
33- SetGameScore
34+ SetGameScore ,
35+ GetGameHighScores
3436):
3537 pass
Original file line number Diff line number Diff line change 2020
2121import pyrogram
2222from pyrogram .api import functions
23- from .. .ext import BaseClient
23+ from pyrogram . client .ext import BaseClient
2424
2525
2626class GetGameHighScores (BaseClient ):
@@ -45,6 +45,12 @@ def get_game_high_scores(self,
4545 message_id (``int``, *optional*):
4646 Identifier of the sent message.
4747 Required if inline_message_id is not specified.
48+
49+ Returns:
50+ On success, a :obj:`GameHighScores <pyrogram.GameHighScores>` object is returned.
51+
52+ Raises:
53+ :class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
4854 """
4955 # TODO: inline_message_id
5056
Original file line number Diff line number Diff line change 2424from .edit_message_reply_markup import EditMessageReplyMarkup
2525from .edit_message_text import EditMessageText
2626from .forward_messages import ForwardMessages
27- from .get_game_high_scores import GetGameHighScores
2827from .get_history import GetHistory
2928from .get_messages import GetMessages
3029from .iter_history import IterHistory
3433from .send_chat_action import SendChatAction
3534from .send_contact import SendContact
3635from .send_document import SendDocument
37- from pyrogram .client .methods .bots .send_game import SendGame
3836from .send_location import SendLocation
3937from .send_media_group import SendMediaGroup
4038from .send_message import SendMessage
4543from .send_video import SendVideo
4644from .send_video_note import SendVideoNote
4745from .send_voice import SendVoice
48- from pyrogram .client .methods .bots .set_game_score import SetGameScore
4946from .vote_poll import VotePoll
5047
5148
@@ -77,9 +74,6 @@ class Messages(
7774 ClosePoll ,
7875 RetractVote ,
7976 DownloadMedia ,
80- IterHistory ,
81- SendGame ,
82- SetGameScore ,
83- GetGameHighScores
77+ IterHistory
8478):
8579 pass
You can’t perform that action at this time.
0 commit comments