Skip to content

Personal assistant Telegram bot. Currently ships my daily puzzle scores to my website ๐Ÿš€

License

Notifications You must be signed in to change notification settings

galiarmero/nenoy-the-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

44 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

nenoy-the-bot

Personal assistant Telegram bot. Currently ships my daily puzzle scores to galiarmero.dev/puzzle-scores ๐Ÿš€

Development

Environment variables

Variable Description Value
BOT_TOKEN Unique Telegram authentication token assigned when bot was created. e.g. 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
NENOY_API_BASE_URL URL of the backend server. e.g. https://nenoy-api.example.com
ALLOWED_USER_IDS Telegram user IDs that the bots will interact with. e.g. 324501,202910
NOTIF_CHAT_IDS Telegram chat IDs where notifications will be sent. e.g. 90192920,2038494
NENOY_API_USER Username for the backend server.
NENOY_API_PASS Password for the backend server.
NENOY_API_TIMEOUT Optional. Timeout in milliseconds on backend server requests. Default: 5000
NENOY_API_RETRY_MAX Optional. Maximum number of retry attempts after encountering retriable errors. Default: 5
NENOY_API_RETRY_DELAY Optional. Delay in milliseconds before retrying requests after retriable errors. Default: 10000
WEBHOOK_BASE_URL Required when UPDATE_METHOD is not polling.

URL of the webhook server where Telegram bot updates will be sent._
e.g. http://localhost:3000
UPDATE_METHOD How updates from Telegram will be received by the bot. polling or webhook

Default: webhook
NODE_ENV Current deployment environment. Mainly used to decide how webhook server will be set up. development or production
PORT Port where the server will run e.g. 3000

Starting the bot

To start a local webhook server:

npm run dev

About

Personal assistant Telegram bot. Currently ships my daily puzzle scores to my website ๐Ÿš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published