Akulij
4474188655
create EditTextOnly state
...
reason: Edit state already exists, but it accepts any message,
but there is need in ability to accept only text, for example for
button editing
2025-05-01 14:35:17 +03:00
Akulij
fed5d8f5b7
create /editbutton cmd for admin
2025-05-01 14:11:34 +03:00
Akulij
c6468269e7
use create_callback_button to create more info button
...
reason: localization and follow pattern
2025-04-30 21:20:18 +03:00
Akulij
c56b3bf4eb
change start buttons
2025-04-30 21:17:46 +03:00
Akulij
0fc96b17a6
move single_button_markup macro to utils file
2025-04-30 21:04:54 +03:00
Akulij
f58607a883
create single_button_markup macro
2025-04-30 21:01:58 +03:00
Akulij
82c858b0f8
change message on edit bot message request
...
reason: notify user why messages that use media group is not compatible
with message editing (it is compatible if media count is <= than in
editable, but not implemented in bot and potentially will not be implemented at all)
2025-04-30 19:31:20 +03:00
Akulij
88360c91ca
init pretty_env_logger
2025-04-30 19:21:00 +03:00
Akulij
2d5e2ed34e
fix: wrongly spelled serde's rename_all attribute
2025-04-30 14:36:22 +03:00
Akulij
53edb54118
make more_info and show_projects on separate lines
2025-04-30 13:56:29 +03:00
Akulij
0c71fd3796
delete unused block in matching callback
2025-04-30 13:43:30 +03:00
Akulij
5192b43e0b
create show_projects button on /start
2025-04-30 13:42:10 +03:00
Akulij
8c2d2425c4
create create_callback_button function
...
description: utils.rs will have shortcuts for frequently used code
2025-04-30 13:38:57 +03:00
Akulij
36c729e57b
rename DemoProject callback to more convinient ProjectPage
2025-04-30 12:56:36 +03:00
Akulij
cbe24cc134
use Callbackinfo with internal Callback struct to handle telegram callbacks
2025-04-29 19:53:01 +03:00
Akulij
ccd38178ea
add todo to extend type in StorageError
2025-04-28 22:55:52 +03:00
Akulij
a51344d089
use log crate instead of raw prints
2025-04-28 22:53:58 +03:00
Akulij
ffe2fd8bc1
create custom type to return all errors
2025-04-28 22:43:18 +03:00
Akulij
2aff289a96
clippy: fix warnings
2025-04-28 17:47:31 +03:00
Akulij
03e42c9108
fix bug: editing text kept previous media in message
2025-04-28 00:06:22 +03:00
Akulij
a905325a52
update user in db from telegram user info
2025-04-27 23:55:45 +03:00
Akulij
345ea66f8e
fix cargo warnings
2025-04-27 23:04:58 +03:00
Akulij
82045a39a9
create BotController
2025-04-27 23:01:40 +03:00
Akulij
b318e3ec8e
use DB::init function instead of manual connection and migration
2025-04-27 21:04:34 +03:00
Akulij
403e06f542
call db migration on init
2025-04-26 00:28:47 +03:00
Akulij
a765dce328
use MongodbStorage
2025-04-26 00:28:19 +03:00
Akulij
08167143aa
migrate db to mongodb from diesel(postgres)
2025-04-25 22:44:50 +03:00
Akulij
e2d2cebed8
cargo fmt
2025-04-25 21:05:54 +03:00
Akulij
a940ef5e83
move towards generefication of DB implementation
2025-04-22 22:51:54 +03:00
Akulij
b6ae5170a4
add support for media group in user configurable messages
2025-04-21 22:45:30 +03:00
Akulij
a2f135ccda
feature: add support for video in user configurable messages
2025-04-21 20:23:09 +03:00
Akulij
5492beec41
add support for photo in message
2025-04-18 14:51:22 +03:00
Akulij
ffb2b8b7fe
fix warnings of unused dependencies
2025-04-18 12:56:54 +03:00
Akulij
412a54d647
cargo fmt
2025-04-10 20:55:32 +09:00
Akulij
1006fbe5c1
fix: request first_name in user creation db function
...
it is required column in table
2025-04-10 20:46:23 +09:00
Akulij
a9919a9307
handle edit command in any case
2025-04-10 20:12:15 +09:00
Akulij
4a37792c0c
change edit_msg_handler logic for more extensibility
2025-04-10 20:06:52 +09:00
Akulij
2bac30e711
create callback_handler
2025-04-10 19:27:31 +09:00
Akulij
a58fca01f9
fix: ask only for chat_id instead of whole message in answer_message in
...
case of generalization
2025-04-10 02:34:41 +09:00
Akulij
089ef3218c
move out message answer into function
2025-04-10 02:18:28 +09:00
Akulij
cca87da403
cargo fmt
2025-04-08 01:13:49 +09:00
Akulij
98be2b0f7d
display event buttons
2025-04-08 01:12:35 +09:00
Akulij
e9a44a221d
add test events on init
2025-04-08 01:11:45 +09:00
Akulij
2bad5d79c7
cargo add chrono_tz
2025-04-08 00:47:13 +09:00
Akulij
8e3ebc936c
cargo fmt
2025-04-06 17:58:29 +09:00
Akulij
d74e691009
implement bot message editing feature
2025-04-06 17:58:05 +09:00
Akulij
c977500ee4
rustfmt
2025-04-03 22:51:32 +09:00
Akulij
7777aadf6a
create edit msg handler
2025-04-03 22:06:58 +09:00
Akulij
d7d67536ce
remove unused import
2025-04-03 05:05:15 +09:00
Akulij
d886a2459f
move out command handler to separate function
2025-04-03 05:03:04 +09:00