Telegram bot source code in Python. You can read more tutorials at CodeMyBot.com
- Update
chat.py
to support bitcoin price check commands.
- Update
config.py
to fall back to environment vars when there is no database record. This feature supports our unit test. - Update
chat.py
to support Telegram command message. - Update
handler_bot_test.py
with new test case.
- Add
settings.py
to manage all settings handlers. - Add
settings.config.html
,settings.webhook.html
templates.
- Refactor app settings into sub pages. Right now we have config and webhook pages.
- Update templates for better layout.
- Update
settings.html
,base.py
to view secret values on settings page. - Refactor
config.py
,chat.py
.
- Add
models/config.py
- Update
base.py
,bot.py
,chat.py
to get Telegram token from config model.
- Support get/update Telegram webhook from settings page.
- Clean up get/update webhook routes.
- Update
base.py
,base.html
with login/logout menu item.
- Add
templates/settings.html
- Add
templates/403.html
- Support
login
/logout
with Google Sign-In
- Update
main.py
andbase.py
- Add
templates/about.html
- Add
templates/home.html
- Update
base.html
andbase.py
to support 2 new pages
- Add
static/css/style.css
- Update
base.html
to use Bootstrap 4
- Add
templates/base.html
- Refactor
base.py
to use jinja2 for rendering
- Add
runner.py
,handler_bot_test.py
for basic unittest
- Update
chat.py
to support decorator methods - Clean repo history
- Add
chat.py
undermodels
package to handle message replying - Update
bot.py
to usechat.py
- Refactor
main.py
into 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