python-telegram icon indicating copy to clipboard operation
python-telegram copied to clipboard

topics

Open yemix opened this issue 1 year ago • 2 comments

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

yemix avatar Mar 21 '24 15:03 yemix

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.

yemix avatar Mar 23 '24 11:03 yemix

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

alexander-akhmetov avatar Mar 23 '24 22:03 alexander-akhmetov