FileStreamBot icon indicating copy to clipboard operation
FileStreamBot copied to clipboard

feature request: admin priviledge mode

Open gitiray opened this issue 3 years ago • 2 comments

hello, since free resource of heroku is not that enough for a whole month I want to run such a bot only for myself, not for others

currently there seems no use of env OWNER_ID so i think the env OWNER_ID could be a lever of admin priviledge mode

env OWNER_ID could be multiple ids separated with comma if env OWNER_ID is set then admin priviledge mode enabled only accounts set in OWNER_ID can get response from the bot

and when admin priviledge mode is enabled, no database is needed

gitiray avatar Jun 14 '22 18:06 gitiray

Admin Privilege Don't Help in Heroku's Free Resources (Dyno Hour) This Still run the Bot and Consume the Free Dyno Hour

OWNER_ID Has Uses. Check admin.py your Id need to be in OWNER_ID var to work /status and /broadcast command

DeekshithSH avatar Jun 25 '22 11:06 DeekshithSH

fine, but this at least such a mode can limit bot to myself.

currently i've set OWNER_ID but others can still start my bot and get links would be nice if a setting to turn the bot into admin-priviledged only

gitiray avatar Jun 25 '22 11:06 gitiray

Why don't you add a AUTH_USERS var like this one https://github.com/EverythingSuckz/TG-FileStreamBot/tree/main?

sanmart02 avatar Jun 24 '23 17:06 sanmart02