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 to send messages to a chat enabling topical structure? #2394

Closed AndrewTran2018 closed 1 year ago

AndrewTran2018 commented 1 year ago

Receiving messages is okay. However, sending messages to a topic enabling chat fails. Please help. @levlam

AYMENJD commented 1 year ago

In topcis, each received message has message_thread_id you need to pass it to sendMessage.

AndrewTran2018 commented 1 year ago

In topcis, each received message has message_thread_id you need to pass it to sendMessage.

At first time, where I can find message_thread_id? In a received message? @AYMENJD

AYMENJD commented 1 year ago

You can do message.message_thread_id.