Skip to content

Eldinnie/ptb-heroku-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

So you want to deploy a python-telegram-bot on Heroku?

In this repository you'll find a skeleton for an app on Heroku using the python-telegram-bot library.

Things to read/know:

Things you need:

  • A token for your bot from @BotFather
  • The name for your app. Either gathered from the web-interface or given when running
$ heroku create <appname>

Fill these in in the right place in the script you're using.

Two versions

This Repo contains two different skeletons:

  • herokubot.py - Using the builtin webhookserver
  • herokubotcp.py - Using cherrypy. It even also runs a welcome webpage.

Mind that If you want to use the second example, you'll have to add cherrypy to the requirements.txt.

Procfile

The Procfile in this repository is currently set to run the first version (with the simple http server) Change it to whatever you need.

For questions regarding python-telegram-bot please use our telegram group.

About

A skeleton app for heroku using python-telegram-bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages