I'm programming a Telegram bot in python with the python-telegram-bot
library for python3.x It's a bot for private use only (me and some relatives), so I would like to prevent other users from using it. My idea is to create a list of authorized user IDs and the bot must not answer to messages received from users not in the list. How can I do that?
Edit: I'm quite a newbie to both python and python-telegram-bot
. I'd appreciate a code snippet as example if possible =).