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

Add support for Telegram topic-specific messages (message_thread_id) #1598

Open
omssky opened this issue Jan 12, 2025 · 2 comments
Open

Add support for Telegram topic-specific messages (message_thread_id) #1598

omssky opened this issue Jan 12, 2025 · 2 comments
Labels
Feature New feature or request TgBot v1 feature or bug that need to be implement or be fixed in version 1

Comments

@omssky
Copy link

omssky commented Jan 12, 2025

Is your feature request related to a problem? Please describe.
Hi, I found it very useful to be able to put telegram logs in a separate topic of forum chat.

Describe the solution you'd like
Add the ability to specify message_thread_id for telegram logs. can be configured using the TELEGRAM_LOGGER_THREAD_ID environment variable.

Additional context
This feature requires an update to the telebot library and a couple lines of code (no need to check for a missing value), I can do this myself shortly

@M03ED M03ED added Feature New feature or request TgBot v1 feature or bug that need to be implement or be fixed in version 1 labels Jan 14, 2025
@M03ED
Copy link
Collaborator

M03ED commented Jan 14, 2025

if its just a id it should be possible to replace TELEGRAM_LOGGER_CHANNEL_ID with your THREAD_ID and works fine, if it need something special that going to be added in next version

@omssky
Copy link
Author

omssky commented Jan 20, 2025

Unfortunately, this doesn't work by simply replacing TELEGRAM_LOGGER_CHANNEL_ID. To send messages to a specific thread, you need to specify the message_thread_id header for telegram API requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request TgBot v1 feature or bug that need to be implement or be fixed in version 1
Projects
None yet
Development

No branches or pull requests

2 participants