Allowed users¶
The list of Telegram accounts permitted to use the bot, by numeric user_id or
@username. Everyone else is refused.
Unauthorized users receive a message with their user_id and username so
they can ask an admin for access. This is also how you find your own id the
first time — see Run in CLI → Step 5.
That message doubles as the way you add someone. Ask the new person to send
the bot any message, have them copy the id it replies with, add that id to
allowed_users, and restart the bot. Next time they write, they get the menu
instead of the refusal.
Everyone on the list shares the same menu
There are no per-user permissions. Anyone you add can tap every button you defined, so keep the list to people you trust with the machine itself.
Two accounts allowed to use the bot
Configuration¶
For allowed_users and other Telegram settings, see
Configuration → telegram.
Related¶
- Config file — holds the
telegramsection - How the bot connects — no inbound port to open