1
0
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:
eternnoir 2015-12-22 14:18:23 +08:00
parent c37b3625aa
commit eeff4e7bf8

View File

@ -233,6 +233,25 @@ class Message(JsonDeserializable):
self.from_user = from_user
self.message_id = message_id
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:
setattr(self, key, options[key])