Skip to content

Commit 8b0cbd8

Browse files
committed
update release_notes
1 parent d5bb05f commit 8b0cbd8

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

bot/bot_controller.py

Whitespace-only changes.

release_notes.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# Release Notes
2+
## Version 2.1.6 - Date 16 Dec 2023
3+
### Bug Fix 🛠️
4+
- Fix empty subcategory and subpayment bug
5+
6+
### New Features 🆕
7+
- Added a new shortcode to retrieve transaction for today `/today`
8+
9+
### For Developer 🧑‍💻
10+
- Mini refactor of code, added utils folder to store helper functions
11+
- Added a new test_polling.py file to test polling locally
12+
- Rename test.py to test_webhook.py for webhook testing
213

314
## Version 2.1.5 - Date 30 July 2023
415
### Bug Fix 🛠️

test_polling.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import logging
2+
from telegram.ext import Updater
3+
import os
4+
from bot.telegram_bot import setup_handlers
5+
6+
# Enable logging and set the file to write logs to
7+
log_file = 'telegram_bot.log'
8+
logging.basicConfig(filename=log_file, filemode='a',
9+
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
10+
level=logging.INFO)
11+
12+
logger = logging.getLogger(__name__)
13+
14+
TOKEN = os.environ.get("TEST_TOKEN")
15+
updater = Updater(token=TOKEN, use_context=True)
16+
dispatcher = updater.dispatcher
17+
18+
setup_handlers(dispatcher)
19+
20+
if __name__ == "__main__":
21+
updater.start_polling()
22+
print(f"# Bot is running at @{updater.bot.get_me().username} #")
23+
updater.idle()

test.py renamed to test_webhook.py

File renamed without changes.

0 commit comments

Comments
 (0)