Based on Telebot.
Runs on Google App Engine.
- In
app.yaml
change theYOUR_APP_ID_HERE
to your Google Cloud project ID. - In
main.py
env varTOKEN
required (bot token from Telegram bot father). - Deploy to GCP.
- In your browser, go to https://
project-id
.appspot.com/me (replaceproject-id
with your project ID). Wait until you see a long text with"ok": true
and your bot's name (might take a moment). - Go to https://
project-id
.appspot.com/set_webhook?url=https://project-id
.appspot.com/webhook (replace bothproject-id
s with the Project ID). You should seeWebhook was set
. - Open your Telegram client and send the message
/start
to your bot. (type @your-bot-username
at the search field to initiate the conversation)