mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 14:35:00 +01:00
Fix regression on ReplyMarkup and add certificate to is_inputfile method
This commit is contained in:
parent
f355af1d2b
commit
df000f8086
2 changed files with 2 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -27,6 +27,3 @@ class ReplyMarkup(TelegramObject):
|
|||
@staticmethod
|
||||
def de_json(data):
|
||||
pass
|
||||
|
||||
def to_dict(self):
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue