poll_type to type

This commit is contained in:
gabbhack 2020-01-23 20:51:25 +05:00
parent caf9f9e411
commit a8debbba04
2 changed files with 4 additions and 4 deletions

View file

@ -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()

View file

@ -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):