Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.
/ ServerlessTelegram Public archive

A telegram bot which can be hosted on Vercel or any other serverless platform.

License

Notifications You must be signed in to change notification settings

dakshy/ServerlessTelegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ServerlessTelegram

A Python Serverless Telegram bot which can be hosted on https://vercel.com. This repo provides just an example. When deployed correctly, the bot replies with a message "Hello" to every message sent to it.

Steps

1) Add env variable to vercel.com

Add your telegram bot token as BOT_TOKEN variable on Vercel.

2) Register webhook

curl "https://api.telegram.org/bot<BOT_TOKEN>/setWebhook?url=https://{your-project-name}.vercel.app/api"

Cannot run the above command? Just ping the URL once on your browser and the work is done.

Libraries

  • python-telegram-bot
  • flask

Credits

About

A telegram bot which can be hosted on Vercel or any other serverless platform.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages