mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +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
|
bool
|
||||||
"""
|
"""
|
||||||
if data:
|
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]
|
file_type = [i for i in list(data.keys()) if i in file_types]
|
||||||
|
|
||||||
if file_type:
|
if file_type:
|
||||||
|
|
|
@ -27,6 +27,3 @@ class ReplyMarkup(TelegramObject):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def de_json(data):
|
def de_json(data):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def to_dict(self):
|
|
||||||
pass
|
|
||||||
|
|
Loading…
Reference in a new issue