Telegram bot source code in Python. You can read more tutorials at CodeMyBot.com
- Update
chat.pyto support bitcoin price check commands.
- Update
config.pyto fall back to environment vars when there is no database record. This feature supports our unit test. - Update
chat.pyto support Telegram command message. - Update
handler_bot_test.pywith new test case.
- Add
settings.pyto manage all settings handlers. - Add
settings.config.html,settings.webhook.htmltemplates.
- Refactor app settings into sub pages. Right now we have config and webhook pages.
- Update templates for better layout.
- Update
settings.html,base.pyto view secret values on settings page. - Refactor
config.py,chat.py.
- Add
models/config.py
- Update
base.py,bot.py,chat.pyto get Telegram token from config model.
- Support get/update Telegram webhook from settings page.
- Clean up get/update webhook routes.
- Update
base.py,base.htmlwith login/logout menu item.
- Add
templates/settings.html - Add
templates/403.html - Support
login/logoutwith Google Sign-In
- Update
main.pyandbase.py
- Add
templates/about.html - Add
templates/home.html
- Update
base.htmlandbase.pyto support 2 new pages
- Add
static/css/style.css
- Update
base.htmlto use Bootstrap 4
- Add
templates/base.html
- Refactor
base.pyto use jinja2 for rendering
- Add
runner.py,handler_bot_test.pyfor basic unittest
- Update
chat.pyto support decorator methods - Clean repo history
- Add
chat.pyundermodelspackage to handle message replying - Update
bot.pyto usechat.py
- Refactor
main.pyinto sub modules - Use str.format()
- defaultReply method to support all kind of messages
- Add 'reply_to_message_id' to reply payload. Easier for us to know what message the bot is replying to.
- Remove 'disable_web_page_preview' from reply payload
- Initial source code
- This README file