Telegram module #10
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
#2 Telegram API integration
Miroslavsckaya/tg_rss_bot
#6 Persistence module (database interaction)
Miroslavsckaya/tg_rss_bot
#9 Python venv
Miroslavsckaya/tg_rss_bot
Reference: Miroslavsckaya/tg_rss_bot#10
Loading…
Reference in a new issue
No description provided.
Delete branch "feature_telegram"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
telegram
module. Closes #2 #7.Two service classes:
Notifier
classCommandProcessor
classTwo middlewares:
UserAuthMiddleware
ExceptionHandlerMiddleware
One exception for usage in the code called by the bot:
DisplayableException
Merge ONLY after #9 is merged.
01dda4fafe
toaa75492716
aa75492716
toeba2ab2252
a3a38a856e
tod39e046af2
6c83447eb8
toec6d707a56
ec6d707a56
to74bd517238
74bd517238
to305f1afa3c
9e4488b204
to3032c642be
3032c642be
to882b4df5e1
WIP: Telegram packageto WIP: Telegram moduleWIP: Telegram moduleto Telegram module@Miroslavsckaya This PR is more or less ready. Check it out when you have time.
@ -11,2 +10,3 @@
"""Create a database file if not exists."""
self.conn = sqlite3.connect(path)
# TODO: think about removing check_same_thread=False
self.conn = sqlite3.connect(path, check_same_thread=False)
check_same_thread=False
is a bad solution which can backfire on us in the future.But I didn't see any other good solution at the time.