From 15bd5f991ac07433cf9cfae45e7d35268f9441c0 Mon Sep 17 00:00:00 2001 From: _run Date: Fri, 18 Nov 2022 23:21:06 +0400 Subject: [PATCH] Update types.py --- telebot/types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telebot/types.py b/telebot/types.py index 06761fb..f1f9f97 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -958,6 +958,8 @@ class Message(JsonDeserializable): opts['is_automatic_forward'] = obj.get('is_automatic_forward') if 'is_topic_message' in obj: opts['is_topic_message'] = obj.get('is_topic_message') + if 'message_thread_id' in obj: + opts['message_thread_id'] = obj.get('message_thread_id') if 'reply_to_message' in obj: opts['reply_to_message'] = Message.de_json(obj['reply_to_message']) if 'via_bot' in obj: