From a93f98cfa6967006b43617a4f7e6703fcb99752b Mon Sep 17 00:00:00 2001
From: Dan <14043624+delivrance@users.noreply.github.com>
Date: Thu, 9 Aug 2018 21:51:00 +0200
Subject: [PATCH] Create a new sub-folder for bot related types
---
pyrogram/client/types/__init__.py | 13 ++++++++-----
.../client/types/{reply_markup => bots}/__init__.py | 1 +
pyrogram/client/types/{ => bots}/callback_query.py | 0
.../types/{reply_markup => bots}/force_reply.py | 0
.../inline_keyboard_button.py | 0
.../inline_keyboard_markup.py | 0
.../types/{reply_markup => bots}/keyboard_button.py | 0
.../{reply_markup => bots}/reply_keyboard_markup.py | 0
.../{reply_markup => bots}/reply_keyboard_remove.py | 0
9 files changed, 9 insertions(+), 5 deletions(-)
rename pyrogram/client/types/{reply_markup => bots}/__init__.py (96%)
rename pyrogram/client/types/{ => bots}/callback_query.py (100%)
rename pyrogram/client/types/{reply_markup => bots}/force_reply.py (100%)
rename pyrogram/client/types/{reply_markup => bots}/inline_keyboard_button.py (100%)
rename pyrogram/client/types/{reply_markup => bots}/inline_keyboard_markup.py (100%)
rename pyrogram/client/types/{reply_markup => bots}/keyboard_button.py (100%)
rename pyrogram/client/types/{reply_markup => bots}/reply_keyboard_markup.py (100%)
rename pyrogram/client/types/{reply_markup => bots}/reply_keyboard_remove.py (100%)
diff --git a/pyrogram/client/types/__init__.py b/pyrogram/client/types/__init__.py
index 13198982..3fd4a8d1 100644
--- a/pyrogram/client/types/__init__.py
+++ b/pyrogram/client/types/__init__.py
@@ -16,7 +16,14 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see .
-from .callback_query import CallbackQuery
+from .bots import (
+ CallbackQuery, ForceReply, InlineKeyboardButton, InlineKeyboardMarkup,
+ KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove
+)
+from .bots import (
+ ForceReply, InlineKeyboardButton, InlineKeyboardMarkup,
+ KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove
+)
from .input_media import (
InputMediaAudio, InputPhoneContact, InputMediaVideo, InputMediaPhoto,
InputMediaDocument, InputMediaAnimation
@@ -28,10 +35,6 @@ from .media import (
from .message import Message
from .message_entity import MessageEntity
from .messages import Messages
-from .reply_markup import (
- ForceReply, InlineKeyboardButton, InlineKeyboardMarkup,
- KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove
-)
from .update import Update
from .user_and_chats import (
Chat, ChatMember, ChatMembers, ChatPhoto,
diff --git a/pyrogram/client/types/reply_markup/__init__.py b/pyrogram/client/types/bots/__init__.py
similarity index 96%
rename from pyrogram/client/types/reply_markup/__init__.py
rename to pyrogram/client/types/bots/__init__.py
index 62ce7152..9f7cc7e6 100644
--- a/pyrogram/client/types/reply_markup/__init__.py
+++ b/pyrogram/client/types/bots/__init__.py
@@ -16,6 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see .
+from .callback_query import CallbackQuery
from .force_reply import ForceReply
from .inline_keyboard_button import InlineKeyboardButton
from .inline_keyboard_markup import InlineKeyboardMarkup
diff --git a/pyrogram/client/types/callback_query.py b/pyrogram/client/types/bots/callback_query.py
similarity index 100%
rename from pyrogram/client/types/callback_query.py
rename to pyrogram/client/types/bots/callback_query.py
diff --git a/pyrogram/client/types/reply_markup/force_reply.py b/pyrogram/client/types/bots/force_reply.py
similarity index 100%
rename from pyrogram/client/types/reply_markup/force_reply.py
rename to pyrogram/client/types/bots/force_reply.py
diff --git a/pyrogram/client/types/reply_markup/inline_keyboard_button.py b/pyrogram/client/types/bots/inline_keyboard_button.py
similarity index 100%
rename from pyrogram/client/types/reply_markup/inline_keyboard_button.py
rename to pyrogram/client/types/bots/inline_keyboard_button.py
diff --git a/pyrogram/client/types/reply_markup/inline_keyboard_markup.py b/pyrogram/client/types/bots/inline_keyboard_markup.py
similarity index 100%
rename from pyrogram/client/types/reply_markup/inline_keyboard_markup.py
rename to pyrogram/client/types/bots/inline_keyboard_markup.py
diff --git a/pyrogram/client/types/reply_markup/keyboard_button.py b/pyrogram/client/types/bots/keyboard_button.py
similarity index 100%
rename from pyrogram/client/types/reply_markup/keyboard_button.py
rename to pyrogram/client/types/bots/keyboard_button.py
diff --git a/pyrogram/client/types/reply_markup/reply_keyboard_markup.py b/pyrogram/client/types/bots/reply_keyboard_markup.py
similarity index 100%
rename from pyrogram/client/types/reply_markup/reply_keyboard_markup.py
rename to pyrogram/client/types/bots/reply_keyboard_markup.py
diff --git a/pyrogram/client/types/reply_markup/reply_keyboard_remove.py b/pyrogram/client/types/bots/reply_keyboard_remove.py
similarity index 100%
rename from pyrogram/client/types/reply_markup/reply_keyboard_remove.py
rename to pyrogram/client/types/bots/reply_keyboard_remove.py