How to get TopicID message was sent to in supergroup converted to forum?

93 views Asked by At

I am trying to parse message sent to topic in forum group, by cannot find in Message class TopicID. PeerID is parent group id, version of library 3.5.3

(https://core.telegram.org/api/forum)

Does library supports supergroups converted to forum? Any way to solve my problem?

1

There are 1 answers

5
Wizou On

the topic ID of a message can be found in:

(message.reply_to as MessageReplyHeader)?.reply_to_top_id
or
(message.reply_to as MessageReplyHeader)?.reply_to_msg_id (if above is 0)