HOW TO CREATE A TELEGRAM BOT WITH PYTHON, NGINX AND GOOGLE CLOUD PLATFORM

In this video we see how to create a Telegram Bot in python using nginx and Google Cloud Platform. UPDATE! There was a change in the library, so please use the following for the webhook: def tbot(): updater = Updater(TOKEN, use_context=True) dp = (CommandHandler(“help“, htel)) (MessageHandler(, echo)) ( listen=““, port=5000, url_path=TOKEN, webhook_url=f’https://{SERVER}{TOKEN}’, cert=CERT) () You can see the changes here: #the-integrated-webhook-server Medium article: @jasonjurotich/how-to-create-a-simple-telegram-bot-in-python-using-nginx-and-gcp-926f1b0fb16f
Back to Top