Fix regression on ReplyMarkup and add certificate to is_inputfile method

This commit is contained in:
leandrotoledo 2015-09-04 23:20:14 -03:00
parent f355af1d2b
commit df000f8086
2 changed files with 2 additions and 4 deletions

View file

@ -171,7 +171,8 @@ class InputFile(object):
bool
"""
if data:
file_types = ['audio', 'document', 'photo', 'video', 'voice']
file_types = ['audio', 'document', 'photo', 'video', 'voice',
'certificate']
file_type = [i for i in list(data.keys()) if i in file_types]
if file_type:

View file

@ -27,6 +27,3 @@ class ReplyMarkup(TelegramObject):
@staticmethod
def de_json(data):
pass
def to_dict(self):
pass