tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

How can I send a message to a specific topic? #2643

Closed fat-complex closed 1 year ago

fat-complex commented 1 year ago

How can I send a message to a specific topic? I have a forum id and a messageThreadId for the topic. I am sending using the SendMessage method. But for some reason the message comes to general. What steps am I missing?

levlam commented 1 year ago

Currently, you need to use getMessageThread first to get information about the thread. As a temporarily workaround, you can also pass message thread identifier as message identifier to getMessage.