Skip to content

Commit ee47232

Browse files
committed
Move get_game_high_scores method into bots folder
1 parent dc737ab commit ee47232

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

pyrogram/client/methods/bots/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

1919
from .answer_callback_query import AnswerCallbackQuery
20+
from .get_game_high_scores import GetGameHighScores
2021
from .get_inline_bot_results import GetInlineBotResults
2122
from .request_callback_answer import RequestCallbackAnswer
2223
from .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

pyrogram/client/methods/messages/get_game_high_scores.py renamed to pyrogram/client/methods/bots/get_game_high_scores.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import pyrogram
2222
from pyrogram.api import functions
23-
from ...ext import BaseClient
23+
from pyrogram.client.ext import BaseClient
2424

2525

2626
class 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

pyrogram/client/methods/messages/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from .edit_message_reply_markup import EditMessageReplyMarkup
2525
from .edit_message_text import EditMessageText
2626
from .forward_messages import ForwardMessages
27-
from .get_game_high_scores import GetGameHighScores
2827
from .get_history import GetHistory
2928
from .get_messages import GetMessages
3029
from .iter_history import IterHistory
@@ -34,7 +33,6 @@
3433
from .send_chat_action import SendChatAction
3534
from .send_contact import SendContact
3635
from .send_document import SendDocument
37-
from pyrogram.client.methods.bots.send_game import SendGame
3836
from .send_location import SendLocation
3937
from .send_media_group import SendMediaGroup
4038
from .send_message import SendMessage
@@ -45,7 +43,6 @@
4543
from .send_video import SendVideo
4644
from .send_video_note import SendVideoNote
4745
from .send_voice import SendVoice
48-
from pyrogram.client.methods.bots.set_game_score import SetGameScore
4946
from .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

0 commit comments

Comments
 (0)