mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
poll_type to type
This commit is contained in:
parent
caf9f9e411
commit
a8debbba04
2 changed files with 4 additions and 4 deletions
|
|
@ -38,6 +38,6 @@ class Poll(base.TelegramObject):
|
|||
total_voter_count: base.Integer = fields.Field()
|
||||
is_closed: base.Boolean = fields.Field()
|
||||
is_anonymous: base.Boolean = fields.Field()
|
||||
poll_type: base.String = fields.Field(alias="type")
|
||||
type: base.String = fields.Field()
|
||||
allows_multiple_answers: base.Boolean = fields.Field()
|
||||
correct_option_id: base.Integer = fields.Field()
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ class KeyboardButtonPollType(base.TelegramObject):
|
|||
|
||||
https://core.telegram.org/bots/api#keyboardbuttonpolltype
|
||||
"""
|
||||
poll_type: base.String = fields.Field(alias="type")
|
||||
type: base.String = fields.Field()
|
||||
|
||||
def __init__(self, poll_type: base.String):
|
||||
super(KeyboardButtonPollType, self).__init__(poll_type=poll_type)
|
||||
def __init__(self, type: base.String):
|
||||
super(KeyboardButtonPollType, self).__init__(type=type)
|
||||
|
||||
|
||||
class ReplyKeyboardMarkup(base.TelegramObject):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue