Commit graph

28 commits

Author SHA1 Message Date
mykola2312
8e36fa1e08 begin implementing request listing 2024-03-03 22:26:58 +02:00
mykola2312
4d2b01f961 fix bug when op wasn't setting admin access (when user was already created), add indecies on telegram ids in database 2024-03-03 20:02:50 +02:00
mykola2312
f1b8f596d7 implement request command 2024-03-03 19:26:30 +02:00
mykola2312
8e649c043f begin implementing permission requesting system 2024-03-03 19:05:29 +02:00
mykola2312
0825e5d96a implement new chat memebers message handler to be able to know where bot have been added to register chat in database 2024-03-03 17:35:20 +02:00
mykola2312
fbb0a72039 implement my chat member update handler so bot will know when added to chat or channel and will add record to database 2024-03-03 16:58:17 +02:00
mykola2312
49d473f0cf move all bot reply message texts to i18n yml file to avoid litering code with long strings 2024-03-02 20:16:18 +02:00
mykola2312
842a710928 implement command start (for private chats) 2024-03-02 19:04:02 +02:00
mykola2312
e3cf3fe655 implement user opping (elevating permissions to admin), use
Arc<SqlitePool> because dptree seems to clone deps everytime a dispatch
happens
2024-03-02 08:39:43 +02:00
mykola2312
c9eb89d4e8 implement op command to give myself admin permissions 2024-03-02 04:55:23 +02:00
mykola2312
7fac64f8e4 introduce db pool type instead of hard-coded SqlitePool 2024-03-02 03:07:12 +02:00
mykola2312
1e6d671feb rearrange file structure for bot commands 2024-03-02 02:53:54 +02:00
mykola2312
dd6f8a4f0e remove cmd db test 2024-03-02 02:18:02 +02:00
mykola2312
b70bdde318 rearrange mod file structure 2024-03-02 02:10:11 +02:00
mykola2312
e8245413ab begin messing around with sqlx 2024-03-02 01:50:30 +02:00
mykola2312
80fcc9d5b6 introduce sqlx migrations 2024-02-29 16:23:15 +02:00
mykola2312
ee79869327 fix unused 2024-02-28 18:03:38 +02:00
mykola2312
ed7c493b64 introduce logging to important functions 2024-02-26 22:46:08 +02:00
mykola2312
ca61b91058 make proper logging to file as well as writing errors to stderr. ditch idea with non_blocking because that's not async thing 2024-02-26 21:42:10 +02:00
mykola2312
c17e334c24 implement tracing logging 2024-02-26 19:22:24 +02:00
mykola2312
fa3eb811d8 make SqlitePool a dptree dependency, so handlers would have access to database 2024-02-26 00:42:28 +02:00
mykola2312
b3900a83e3 begin embedding sqlx into teloxide handlers 2024-02-25 23:44:05 +02:00
mykola2312
2c45e4fa44 move generic bot download function to its own function to avoid code duplication 2024-02-24 15:23:57 +02:00
mykola2312
df1d3fc05b write function to find all urls in text 2024-02-24 14:32:08 +02:00
mykola2312
c737ecd1ba remove message log spam 2024-02-21 21:39:41 +02:00
mykola2312
72a7eb0239 implement bot command to download video 2024-02-21 21:04:21 +02:00
mykola2312
ed013fae4d do renaming for command handlers so it wouldn't conflict with other functions 2024-02-21 18:42:09 +02:00
mykola2312
a8a0831a52 move everything related to telegram bot to appropriate module 2024-02-21 14:52:54 +02:00