Skip to content

Commit a93f98c

Browse files
committed
Create a new sub-folder for bot related types
1 parent eeb3b67 commit a93f98c

9 files changed

Lines changed: 9 additions & 5 deletions

pyrogram/client/types/__init__.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@
1616
# You should have received a copy of the GNU Lesser General Public License
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

19-
from .callback_query import CallbackQuery
19+
from .bots import (
20+
CallbackQuery, ForceReply, InlineKeyboardButton, InlineKeyboardMarkup,
21+
KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove
22+
)
23+
from .bots import (
24+
ForceReply, InlineKeyboardButton, InlineKeyboardMarkup,
25+
KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove
26+
)
2027
from .input_media import (
2128
InputMediaAudio, InputPhoneContact, InputMediaVideo, InputMediaPhoto,
2229
InputMediaDocument, InputMediaAnimation
@@ -28,10 +35,6 @@
2835
from .message import Message
2936
from .message_entity import MessageEntity
3037
from .messages import Messages
31-
from .reply_markup import (
32-
ForceReply, InlineKeyboardButton, InlineKeyboardMarkup,
33-
KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove
34-
)
3538
from .update import Update
3639
from .user_and_chats import (
3740
Chat, ChatMember, ChatMembers, ChatPhoto,

pyrogram/client/types/reply_markup/__init__.py renamed to pyrogram/client/types/bots/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# You should have received a copy of the GNU Lesser General Public License
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

19+
from .callback_query import CallbackQuery
1920
from .force_reply import ForceReply
2021
from .inline_keyboard_button import InlineKeyboardButton
2122
from .inline_keyboard_markup import InlineKeyboardMarkup
File renamed without changes.
File renamed without changes.

pyrogram/client/types/reply_markup/inline_keyboard_button.py renamed to pyrogram/client/types/bots/inline_keyboard_button.py

File renamed without changes.

pyrogram/client/types/reply_markup/inline_keyboard_markup.py renamed to pyrogram/client/types/bots/inline_keyboard_markup.py

File renamed without changes.
File renamed without changes.

pyrogram/client/types/reply_markup/reply_keyboard_markup.py renamed to pyrogram/client/types/bots/reply_keyboard_markup.py

File renamed without changes.

pyrogram/client/types/reply_markup/reply_keyboard_remove.py renamed to pyrogram/client/types/bots/reply_keyboard_remove.py

File renamed without changes.

0 commit comments

Comments
 (0)