You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the ability to use commands for tgtg on Telegram notifier is disabled, the notifier should only be used to send notices on events, and should not register any tgtg-related commands (as they can't be used).
This is specially important when using a bot for multiple purposes, one of which receive tgtg notices without the intention of executing any commands to tgtg through the bot (hence the TELEGRAM_DISABLE_COMMANDS being enabled).
The text was updated successfully, but these errors were encountered:
Hi @dissidente.
This should already be the case. But the bot also does not unregister the commands on shutdown. So if the scanner was started with TELEGRAM_DISABLE_COMMANDS=False once, the commands will remain...
I will have a look into this later.
Do you know any best practices for this?
I for myself use a separate bot for every project or purpose, so I don't have this problem.
A couple of days ago I changed the setting to false, and removed the commands from the bot, as I actually mainly use the bot for notifications, with tgtg as well. At the time the bot was left without a command list.
Yesterday when I ran into my issue with upgrading the container, I actually made a copy of the container configuration and restored it at the side of the main one, just pointing to the previous container version. I checked the configuration and the setting was still false, so I found weird when I successfully started the container and then got the menu back.
However, a few minutes ago, after having fixed my issue, and starting a new tgtg container, the menu didn't come back (with the setting as false, as it should), so... 🤷♂️
I see the telegram notifier was rebuilt. This might have been present on v1.17.1, which was the previous version I used to keep the notifier going while sorting the container upgrade issue.
When the ability to use commands for tgtg on Telegram notifier is disabled, the notifier should only be used to send notices on events, and should not register any tgtg-related commands (as they can't be used).
This is specially important when using a bot for multiple purposes, one of which receive tgtg notices without the intention of executing any commands to tgtg through the bot (hence the TELEGRAM_DISABLE_COMMANDS being enabled).
The text was updated successfully, but these errors were encountered: