A Telegram bot that helps you stay on track with daily updates! All members of a chat can participate and stay in the loop.
/subscribe
in each of those chats to start receiving updates.If you're having trouble with the bot, feel free to create a GitHub issue.
yarn global add vercel
vercel deploy
(accept all default settings)vercel env add TELEGRAM_API_KEY
vercel env add MONGODB_FULL_URI
.env
file for local development: vercel env pull
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.