driver-telegram
driver-telegram copied to clipboard
Fix quoting in supergroups bug
In supergroups, quoting of any message gets message_thread_id set even if the supergroup doesn't have topics. This causes botman to respond to such messages using the same message_thread_id but since topics don't exist such messages are not displayed anywhere.
This PR makes an additional check of is_topic_message to make sure it's a supergroup with topics and only in that case sets the message_thread_id.