From 65bdf31ce19af79d4b8f1e0037cfe195cf8129c4 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 7 Jan 2019 22:26:52 +0100 Subject: [PATCH] Move send_game and set_game_score into bots folder --- docs/source/pyrogram/Client.rst | 4 ++-- pyrogram/client/methods/bots/__init__.py | 6 +++++- pyrogram/client/methods/{messages => bots}/send_game.py | 2 +- .../client/methods/{messages => bots}/set_game_score.py | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) rename pyrogram/client/methods/{messages => bots}/send_game.py (98%) rename pyrogram/client/methods/{messages => bots}/set_game_score.py (98%) diff --git a/docs/source/pyrogram/Client.rst b/docs/source/pyrogram/Client.rst index 795d1cef..2e2e1d96 100644 --- a/docs/source/pyrogram/Client.rst +++ b/docs/source/pyrogram/Client.rst @@ -67,8 +67,6 @@ Messages vote_poll retract_vote download_media - send_game - set_game_score Chats ----- @@ -140,6 +138,8 @@ Bots send_inline_bot_result answer_callback_query request_callback_answer + send_game + set_game_score .. autoclass:: pyrogram.Client diff --git a/pyrogram/client/methods/bots/__init__.py b/pyrogram/client/methods/bots/__init__.py index b0430efe..28ba49d8 100644 --- a/pyrogram/client/methods/bots/__init__.py +++ b/pyrogram/client/methods/bots/__init__.py @@ -19,13 +19,17 @@ from .answer_callback_query import AnswerCallbackQuery from .get_inline_bot_results import GetInlineBotResults from .request_callback_answer import RequestCallbackAnswer +from .send_game import SendGame from .send_inline_bot_result import SendInlineBotResult +from .set_game_score import SetGameScore class Bots( AnswerCallbackQuery, GetInlineBotResults, RequestCallbackAnswer, - SendInlineBotResult + SendInlineBotResult, + SendGame, + SetGameScore ): pass diff --git a/pyrogram/client/methods/messages/send_game.py b/pyrogram/client/methods/bots/send_game.py similarity index 98% rename from pyrogram/client/methods/messages/send_game.py rename to pyrogram/client/methods/bots/send_game.py index 7cfa33a0..401a5aa6 100644 --- a/pyrogram/client/methods/messages/send_game.py +++ b/pyrogram/client/methods/bots/send_game.py @@ -20,7 +20,7 @@ from typing import Union import pyrogram from pyrogram.api import functions, types -from ...ext import BaseClient +from pyrogram.client.ext import BaseClient class SendGame(BaseClient): diff --git a/pyrogram/client/methods/messages/set_game_score.py b/pyrogram/client/methods/bots/set_game_score.py similarity index 98% rename from pyrogram/client/methods/messages/set_game_score.py rename to pyrogram/client/methods/bots/set_game_score.py index 7352aea9..e9d20844 100644 --- a/pyrogram/client/methods/messages/set_game_score.py +++ b/pyrogram/client/methods/bots/set_game_score.py @@ -20,7 +20,7 @@ from typing import Union import pyrogram from pyrogram.api import functions, types -from ...ext import BaseClient +from pyrogram.client.ext import BaseClient class SetGameScore(BaseClient):