This commit is contained in:
Alex Root Junior 2017-08-01 08:14:26 +03:00
parent 23dcf46a43
commit f8b80d39be
2 changed files with 5 additions and 0 deletions

View file

@ -118,6 +118,7 @@ class Message(Deserializable):
invoice = Invoice.deserialize(raw_data.get('invoice'))
successful_payment = SuccessfulPayment.deserialize(raw_data.get('successful_payment'))
# TODO: ContentType helper always return list. Don't forget that! (Fix it after merging fsm into dev branch)
if text:
content_type = ContentType.TEXT
elif audio: