Akulij
2b037e0eaa
create MsgTooOld bot error variant
2025-05-01 14:46:43 +03:00
Akulij
5ec8e2201c
create GoHome callback
2025-05-01 14:45:53 +03:00
Akulij
7ec9c540e5
replace message on MoreInfo callback instead of new one
2025-05-01 14:45:00 +03:00
Akulij
2aaa2b7469
create replace_message function
2025-05-01 14:43:05 +03:00
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
88417441ac
create public stacked_buttons_markup macro
2025-04-30 21:06:41 +03:00
Akulij
710c1bda8d
make single_button_markup public
2025-04-30 21:06:14 +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
64641d4101
do not drop indexes in migration
2025-04-30 19:22:17 +03:00
Akulij
8c3cfc4d2d
set env RUST_LOG=info in bacon's run job
2025-04-30 19:21:27 +03:00
Akulij
88360c91ca
init pretty_env_logger
2025-04-30 19:21:00 +03:00
Akulij
0d4e2a8fcd
cargo add: add pretty_env_logger as a dependency
2025-04-30 19:20:43 +03:00
Akulij
0b089113f3
create methods to delete single and all event(s)
2025-04-30 18:55:30 +03:00
Akulij
6f24d92215
drop all previous indexes in migration
2025-04-30 18:08:27 +03:00
Akulij
4d6717967d
create AnyCollection type in migration
...
reason: most of it doesn't need real type,
but will simplificate alot without real ones
2025-04-30 18:07:07 +03:00
Akulij
85f16311fa
set mongodb's index to clear callback info after a day
2025-04-30 14:37:45 +03:00
Akulij
f3ec4188bb
add created_at field to CallbackInfo
2025-04-30 14:37:12 +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
58a16a5927
make CallbackInfo::store to consume self and return
2025-04-29 19:51:54 +03:00
Akulij
a00c0017bb
create CallbackInfo::get_callback method
2025-04-29 19:51:17 +03:00
Akulij
48bb7b133b
make DbError a custom error type to handle internal errors
2025-04-29 19:50:42 +03:00
Akulij
221fb87c8f
create query_call_consume macro
2025-04-29 19:31:23 +03:00
Akulij
078e2fd62a
create CallbackInfo and its tests
2025-04-29 17:37:20 +03:00
Akulij
0973499652
make query_call macro public
2025-04-29 17:35:49 +03:00
Akulij
b56f07e6be
rename db/tests.rs to dt/tests.mod.rs
...
reason: there will be way more tests, so its better to use multiple
files for them
2025-04-29 11:51:24 +03:00
Akulij
ccd38178ea
add todo to extend type in StorageError
2025-04-28 22:55:52 +03:00
Akulij
ec49ab24b6
clippy: fix warning unused result
2025-04-28 22:54:33 +03:00
Akulij
a51344d089
use log crate instead of raw prints
2025-04-28 22:53:58 +03:00
Akulij
fd3ef221c9
cargo add log
2025-04-28 22:44:01 +03:00
Akulij
ffe2fd8bc1
create custom type to return all errors
2025-04-28 22:43:18 +03:00
Akulij
1c9ab867ed
follow new db function declarations
2025-04-28 22:43:02 +03:00
Akulij
c11e671b15
return custom error in src/mongodb_storage.rs to support return of serializer error
2025-04-28 22:41:21 +03:00
Akulij
55d393eb2c
return result instead of unwraps in db/mod.rs
2025-04-28 22:40:38 +03:00
Akulij
3761cc6fa8
add atribute allow clippy::unwrap_used in tests, since it's what tests should do
2025-04-28 21:07:45 +03:00
Akulij
091c0a436e
ignore macos's file
2025-04-28 20:23:43 +03:00
Akulij
982b6c8ff0
set clippy rule unwrap used as warning
2025-04-28 20:23:00 +03:00
Akulij
329ead4f6e
add thiserror as a dependency
2025-04-28 20:22:41 +03:00
Akulij
8b371ebb2f
clippy: fix warnings in db/tests.rs
2025-04-28 18:34:25 +03:00
Akulij
adfd019166
add clippy lint rule
2025-04-28 18:07:34 +03:00