Boilerplate for a quick start with Telegram and AWS Lambda https://github.com/kianhean/telegrambotawslambda
git clone https://github.com/kianhean/telegrambotawslambda.git
pipenv --three pipenv install
Open zappa_settings.json and replace
If you dont have one please go to @botfather to get one
Open app.py and replace
Assuming you have sufficient permissions run the following commands in the shell
pipenv shell zappa deploy
Take note of the endpoint of your bot. Will look similar to the following
Send the following curl to Telegram to inform them of your endpoint. Replace the variables below with your own
curl --data "url=<YOUR URL ABOVE>" "https://api.telegram.org/bot<TELEGRAMAPIKEY>/setWebhook"
The reply returned should be True.
Speak to your bot!
Updates to your bot can be done and then sent to production using