usememos / telegram-integration

Memogram is an easy to use integration service for syncing messages and images from a Telegram bot into your Memos.
59 stars 15 forks source link

Configurable Auth Token #25

Closed eugene-kovalev closed 2 months ago

eugene-kovalev commented 2 months ago

I am not sure whether this is already a feature (in which case this is a request for documentation) or not, but I would really like for there to be some means to add the memos auth token (as opposed to the telegram bot token) to the configuration of the bot, or at least provide a means for this to be persistent somehow once configured.

Right now, it seems like I need to provide the token whenever the bot restarts. It would be really nice if I could configure it as an environment variable along with everything else the bot needs:

SERVER_ADDR=dns:localhost:5230
BOT_TOKEN=your_telegram_bot_token
AUTH_TOKEN=your_memos_auth_token