vicalloy / telegram-shell-bot

A telegram Bot to run shell commands
194 stars 83 forks source link

How do I authorize multiple users #3

Closed 443344 closed 4 years ago

443344 commented 4 years ago

How do I authorize multiple users? Allow multiple users to use the bot

vicalloy commented 4 years ago

You can use ',' to split user_ids

ENABLED_USERS = '1111,2222,3333'
ENABLED_USERS = set(int(e.strip()) for e in ENABLED_USERS.split(','))