A Telegram bot that helps you stay on track with daily updates! All members of a chat can participate and stay in the loop.
- Add @stood_bot to the chats you want to receive updates in.
- Type
/subscribe
in each of those chats to start receiving updates.
- Reminders to submit updates sent at 10AM EST.
- Updates posted at 11AM EST.
If you're having trouble with the bot, feel free to create a GitHub issue.
- Install Vercel CLI:
yarn global add vercel
- Set up the project with Vercel:
vercel deploy
(accept all default settings) - Create a Telegram bot with BotFather: https://core.telegram.org/bots#6-botfather
- Add your Telegram bot API key as an environment variable:
vercel env add TELEGRAM_API_KEY
- Create a database instance with MongoDB Atlas (name your database "standup"): https://www.mongodb.com/cloud/atlas
- Add your MongoDB URI as an environment variable:
vercel env add MONGODB_FULL_URI
- Pull down the environment variables as a local
.env
file for local development:vercel env pull
- Set up a webhook to your Vercel standup URL: https://api.telegram.org/bot${TELEGRAM_API_KEY}/setWebhook?url=https://.../api/standup?key=${TELEGRAM_API_KEY}
yarn
vercel dev
This runs the website at localhost:3000 and runs your Lambda functions in the /api folder on localhost:3000/api. For more information, check out Vercel's Serverless Functions Introduction.
If your messages or commands aren't going through, check for any pending updates and read the error. You may have to fix the error, or it will happen again.
https://api.telegram.org/bot${TELEGRAM_API_KEY}/getWebhookInfo
https://api.telegram.org/bot${TELEGRAM_API_KEY}/deleteWebhook?drop_pending_updates=true
To view your function logs in Vercel, log in to Vercel, navigate to your bot, click on your functions, and then view the function logs.