Make Dialog and Dialogs importable and printable

This commit is contained in:
Dan 2018-07-04 21:05:00 +02:00
parent 1ed202b926
commit 91cf2d1a8e
3 changed files with 6 additions and 2 deletions

View File

@ -504,6 +504,8 @@ def start():
f.write("\n 0xb0700025: \"pyrogram.client.types.GIF\",") f.write("\n 0xb0700025: \"pyrogram.client.types.GIF\",")
f.write("\n 0xb0700026: \"pyrogram.client.types.Messages\",") f.write("\n 0xb0700026: \"pyrogram.client.types.Messages\",")
f.write("\n 0xb0700027: \"pyrogram.client.types.Photo\",") 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") f.write("\n}\n")

View File

@ -29,8 +29,8 @@ from .api.errors import Error
from .client.types import ( from .client.types import (
Audio, Chat, ChatMember, ChatPhoto, Contact, Document, InputMediaPhoto, Audio, Chat, ChatMember, ChatPhoto, Contact, Document, InputMediaPhoto,
InputMediaVideo, InputPhoneContact, Location, Message, MessageEntity, InputMediaVideo, InputPhoneContact, Location, Message, MessageEntity,
Photo, PhotoSize, Sticker, Update, User, UserProfilePhotos, Venue, GIF, Dialog, Dialogs, Photo, PhotoSize, Sticker, Update, User, UserProfilePhotos,
Video, VideoNote, Voice, CallbackQuery, Messages Venue, GIF, Video, VideoNote, Voice, CallbackQuery, Messages
) )
from .client.types.reply_markup import ( from .client.types.reply_markup import (
ForceReply, InlineKeyboardButton, InlineKeyboardMarkup, ForceReply, InlineKeyboardButton, InlineKeyboardMarkup,

View File

@ -22,6 +22,8 @@ from .chat import Chat
from .chat_member import ChatMember from .chat_member import ChatMember
from .chat_photo import ChatPhoto from .chat_photo import ChatPhoto
from .contact import Contact from .contact import Contact
from .dialog import Dialog
from .dialogs import Dialogs
from .document import Document from .document import Document
from .gif import GIF from .gif import GIF
from .input_media_photo import InputMediaPhoto from .input_media_photo import InputMediaPhoto