Skip to content

Commit 65bdf31

Browse files
committed
Move send_game and set_game_score into bots folder
1 parent 33e83bf commit 65bdf31

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

docs/source/pyrogram/Client.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ Messages
6767
vote_poll
6868
retract_vote
6969
download_media
70-
send_game
71-
set_game_score
7270

7371
Chats
7472
-----
@@ -140,6 +138,8 @@ Bots
140138
send_inline_bot_result
141139
answer_callback_query
142140
request_callback_answer
141+
send_game
142+
set_game_score
143143

144144

145145
.. autoclass:: pyrogram.Client

pyrogram/client/methods/bots/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@
1919
from .answer_callback_query import AnswerCallbackQuery
2020
from .get_inline_bot_results import GetInlineBotResults
2121
from .request_callback_answer import RequestCallbackAnswer
22+
from .send_game import SendGame
2223
from .send_inline_bot_result import SendInlineBotResult
24+
from .set_game_score import SetGameScore
2325

2426

2527
class Bots(
2628
AnswerCallbackQuery,
2729
GetInlineBotResults,
2830
RequestCallbackAnswer,
29-
SendInlineBotResult
31+
SendInlineBotResult,
32+
SendGame,
33+
SetGameScore
3034
):
3135
pass

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

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

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

2525

2626
class SendGame(BaseClient):

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

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

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

2525

2626
class SetGameScore(BaseClient):

0 commit comments

Comments
 (0)