Skip to content

Commit df000f8

Browse files
committed
Fix regression on ReplyMarkup and add certificate to is_inputfile method
1 parent f355af1 commit df000f8

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

telegram/inputfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ def is_inputfile(data):
171171
bool
172172
"""
173173
if data:
174-
file_types = ['audio', 'document', 'photo', 'video', 'voice']
174+
file_types = ['audio', 'document', 'photo', 'video', 'voice',
175+
'certificate']
175176
file_type = [i for i in list(data.keys()) if i in file_types]
176177

177178
if file_type:

telegram/replymarkup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,3 @@ class ReplyMarkup(TelegramObject):
2727
@staticmethod
2828
def de_json(data):
2929
pass
30-
31-
def to_dict(self):
32-
pass

0 commit comments

Comments
 (0)