Skip to content

Commit 1ef3bc7

Browse files
committed
Export Poll and PollAnswer types
1 parent aef02f0 commit 1ef3bc7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

pyrogram/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
InputMediaVideo, InputMediaDocument, InputMediaAudio, InputMediaAnimation, InputPhoneContact,
3232
Location, Message, MessageEntity, Dialog, Dialogs, Photo, PhotoSize, Sticker, User, UserStatus,
3333
UserProfilePhotos, Venue, Animation, Video, VideoNote, Voice, CallbackQuery, Messages, ForceReply,
34-
InlineKeyboardButton, InlineKeyboardMarkup, KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove
34+
InlineKeyboardButton, InlineKeyboardMarkup, KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove,
35+
Poll, PollAnswer
3536
)
3637
from .client import (
3738
Client, ChatAction, ParseMode, Emoji,

pyrogram/client/types/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from .messages_and_media import (
3232
Audio, Contact, Document, Animation, Location, Photo, PhotoSize,
3333
Sticker, Venue, Video, VideoNote, Voice, UserProfilePhotos,
34-
Message, Messages, MessageEntity
34+
Message, Messages, MessageEntity, Poll, PollAnswer
3535
)
3636
from .user_and_chats import (
3737
Chat, ChatMember, ChatMembers, ChatPhoto,

pyrogram/client/types/messages_and_media/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
from .messages import Messages
2727
from .photo import Photo
2828
from .photo_size import PhotoSize
29+
from .poll import Poll
30+
from .poll_answer import PollAnswer
2931
from .sticker import Sticker
3032
from .user_profile_photos import UserProfilePhotos
3133
from .venue import Venue

0 commit comments

Comments
 (0)