mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Let message all attribute default be None. #100
This commit is contained in:
parent
c37b3625aa
commit
eeff4e7bf8
@ -233,6 +233,25 @@ class Message(JsonDeserializable):
|
|||||||
self.from_user = from_user
|
self.from_user = from_user
|
||||||
self.message_id = message_id
|
self.message_id = message_id
|
||||||
self.content_type = content_type
|
self.content_type = content_type
|
||||||
|
self.forward_from = None
|
||||||
|
self.forward_date = None
|
||||||
|
self.reply_to_message = None
|
||||||
|
self.text = None
|
||||||
|
self.audio = None
|
||||||
|
self.voice = None
|
||||||
|
self.document = None
|
||||||
|
self.photo = None
|
||||||
|
self.sticker = None
|
||||||
|
self.video = None
|
||||||
|
self.location = None
|
||||||
|
self.contact = None
|
||||||
|
self.new_chat_participant = None
|
||||||
|
self.left_chat_participant = None
|
||||||
|
self.new_chat_title = None
|
||||||
|
self.new_chat_photo = None
|
||||||
|
self.delete_chat_photo = None
|
||||||
|
self.group_chat_created = None
|
||||||
|
self.caption = None
|
||||||
for key in options:
|
for key in options:
|
||||||
setattr(self, key, options[key])
|
setattr(self, key, options[key])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user