alexander-akhmetov / python-telegram

Python client for the Telegram's tdlib
MIT License
610 stars 123 forks source link

topics #454

Closed yemix closed 3 months ago

yemix commented 6 months ago

Hey, is there a way to send a message to a specific topic in a group?

yemix commented 6 months ago

I tried to change the client.py to support "message_thread_id" from the official tdlib docu but it dont work. Can u look into it? If not, the bot only send messages to "General". When i add the thread id, it doesnt send a message and it responses with "None". I already updated the libtdjson.so but it doesnt fix the problem.

alexander-akhmetov commented 6 months ago

Hi, try to use the more generic call_method, it accepts a dictionary with the data for the call to tdjson. For example.

You can also increase the logging level in tdjson to debug:

tg = Telegram(
    ...,
    tdlib_verbosity=7,
)