Skip to content

Commit 82e252e

Browse files
authored
Update types.py
Fix
1 parent c11a9f8 commit 82e252e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

telebot/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def parse_entities(cls, message_entity_array):
392392
ret.append(MessageEntity.de_json(me))
393393
return ret
394394

395-
def __init__(self, message_id, from_user, date, chat, content_type, options):
395+
def __init__(self, message_id, from_user, date, chat, content_type, options, json_string):
396396
self.content_type = content_type
397397
self.message_id = message_id
398398
self.from_user = from_user
@@ -436,7 +436,7 @@ def __init__(self, message_id, from_user, date, chat, content_type, options):
436436
self.connected_website = None
437437
for key in options:
438438
setattr(self, key, options[key])
439-
self.json = json
439+
self.json = json_string
440440

441441

442442
class MessageEntity(JsonDeserializable):

0 commit comments

Comments
 (0)