From 91cf2d1a8e4377e476e7a2df91a485b76120edf7 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 4 Jul 2018 21:05:00 +0200 Subject: [PATCH] Make Dialog and Dialogs importable and printable --- compiler/api/compiler.py | 2 ++ pyrogram/__init__.py | 4 ++-- pyrogram/client/types/__init__.py | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index 7c1412d1..aa5714ec 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -504,6 +504,8 @@ def start(): f.write("\n 0xb0700025: \"pyrogram.client.types.GIF\",") f.write("\n 0xb0700026: \"pyrogram.client.types.Messages\",") f.write("\n 0xb0700027: \"pyrogram.client.types.Photo\",") + f.write("\n 0xb0700028: \"pyrogram.client.types.Dialog\",") + f.write("\n 0xb0700029: \"pyrogram.client.types.Dialogs\",") f.write("\n}\n") diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index b93b57b1..c151ac4a 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -29,8 +29,8 @@ from .api.errors import Error from .client.types import ( Audio, Chat, ChatMember, ChatPhoto, Contact, Document, InputMediaPhoto, InputMediaVideo, InputPhoneContact, Location, Message, MessageEntity, - Photo, PhotoSize, Sticker, Update, User, UserProfilePhotos, Venue, GIF, - Video, VideoNote, Voice, CallbackQuery, Messages + Dialog, Dialogs, Photo, PhotoSize, Sticker, Update, User, UserProfilePhotos, + Venue, GIF, Video, VideoNote, Voice, CallbackQuery, Messages ) from .client.types.reply_markup import ( ForceReply, InlineKeyboardButton, InlineKeyboardMarkup, diff --git a/pyrogram/client/types/__init__.py b/pyrogram/client/types/__init__.py index 84c12a44..3c569324 100644 --- a/pyrogram/client/types/__init__.py +++ b/pyrogram/client/types/__init__.py @@ -22,6 +22,8 @@ from .chat import Chat from .chat_member import ChatMember from .chat_photo import ChatPhoto from .contact import Contact +from .dialog import Dialog +from .dialogs import Dialogs from .document import Document from .gif import GIF from .input_media_photo import InputMediaPhoto