alexander-akhmetov/python-telegram

topics

yemix opened this issue · 2 comments

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

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.

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,
)