Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topics #454

Open
yemix opened this issue Mar 21, 2024 · 2 comments
Open

topics #454

yemix opened this issue Mar 21, 2024 · 2 comments

Comments

@yemix
Copy link

yemix commented Mar 21, 2024

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

@yemix
Copy link
Author

yemix commented Mar 23, 2024

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants