From 97e705f833d1cba105b2e3c0afdd7c0912b58711 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 9 Nov 2018 13:16:44 +0100 Subject: [PATCH] Make new types importable --- pyrogram/__init__.py | 6 ++++-- pyrogram/client/__init__.py | 3 ++- pyrogram/client/types/__init__.py | 4 ++-- pyrogram/client/types/input_media/__init__.py | 1 + 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index 8b5aaf1b..258c11c2 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -32,10 +32,12 @@ from .client.types import ( Location, Message, MessageEntity, Dialog, Dialogs, Photo, PhotoSize, Sticker, Update, User, UserStatus, UserProfilePhotos, Venue, Animation, Video, VideoNote, Voice, CallbackQuery, Messages, ForceReply, InlineKeyboardButton, InlineKeyboardMarkup, KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove, - InlineQuery, InlineQueryResultArticle, InlineQueryResultPhoto, InputTextMessageContent, InlineQueryResultCachedAudio + InlineQuery, InlineQueryResult, InlineQueryResultArticle, InlineQueryResultPhoto, InputTextMessageContent, + InlineQueryResultCachedAudio, InputMessageContent ) from .client import ( Client, ChatAction, ParseMode, Emoji, MessageHandler, DeletedMessagesHandler, CallbackQueryHandler, - RawUpdateHandler, DisconnectHandler, UserStatusHandler, Filters + RawUpdateHandler, DisconnectHandler, UserStatusHandler, Filters, + InlineQueryHandler ) diff --git a/pyrogram/client/__init__.py b/pyrogram/client/__init__.py index 00b9905a..e83c9387 100644 --- a/pyrogram/client/__init__.py +++ b/pyrogram/client/__init__.py @@ -22,5 +22,6 @@ from .filters import Filters from .handlers import ( MessageHandler, DeletedMessagesHandler, CallbackQueryHandler, RawUpdateHandler, - DisconnectHandler, UserStatusHandler + DisconnectHandler, UserStatusHandler, + InlineQueryHandler ) diff --git a/pyrogram/client/types/__init__.py b/pyrogram/client/types/__init__.py index ce321038..fbc3d7da 100644 --- a/pyrogram/client/types/__init__.py +++ b/pyrogram/client/types/__init__.py @@ -18,7 +18,7 @@ from .bots import ( CallbackQuery, ForceReply, InlineKeyboardButton, InlineKeyboardMarkup, - KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove, InlineQuery, + KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove, InlineQuery, InlineQueryResult, InlineQueryResultArticle, InlineQueryResultPhoto, InlineQueryResultCachedAudio ) from .bots import ( @@ -27,7 +27,7 @@ from .bots import ( ) from .input_media import ( InputMediaAudio, InputPhoneContact, InputMediaVideo, InputMediaPhoto, - InputMediaDocument, InputMediaAnimation, InputTextMessageContent + InputMediaDocument, InputMediaAnimation, InputMessageContent, InputTextMessageContent ) from .messages_and_media import ( Audio, Contact, Document, Animation, Location, Photo, PhotoSize, diff --git a/pyrogram/client/types/input_media/__init__.py b/pyrogram/client/types/input_media/__init__.py index 3a8f9b16..737fbb40 100644 --- a/pyrogram/client/types/input_media/__init__.py +++ b/pyrogram/client/types/input_media/__init__.py @@ -22,5 +22,6 @@ from .input_media_audio import InputMediaAudio from .input_media_document import InputMediaDocument from .input_media_photo import InputMediaPhoto from .input_media_video import InputMediaVideo +from .input_message_content import InputMessageContent from .input_phone_contact import InputPhoneContact from .input_text_message_content import InputTextMessageContent