danneu / telegram-chatgpt-bot

a Telegram ChatGPT bot that supports text prompts and two-way voice memos
33 stars 8 forks source link

Rethink authorization #12

Open danneu opened 1 year ago

danneu commented 1 year ago

Due to popularity, I had to hotfix a 10-message-per-reboot ratelimit for guests.

Part of the hotfix was to overload CAN_MANAGE_MODEL="123,456,789" as general authorization.

It should be more like:

WHITELIST="123,456,789"
ALLOW_GUESTS="true"

So most people self-hosting this would simply leave off ALLOW_GUESTS and not worry about random people abusing the bot.