Akulij
|
e0c00d68f9
|
derive Clone on BotCommand
reason: everything passed in teloxide's filter_map asks Clone (or Copy) implementation
|
2025-05-20 01:16:52 +05:00 |
|
Akulij
|
0e10cdbdf0
|
create command module
defines BotCommand struct
|
2025-05-20 01:07:11 +05:00 |
|
Akulij
|
29cd73e98f
|
create basic handler to answer BotMessage
|
2025-05-20 00:44:08 +05:00 |
|
Akulij
|
3d9a1c31b4
|
use RunnerConfig in BotController
|
2025-05-20 00:42:32 +05:00 |
|
Akulij
|
5c8cadf7a0
|
create test for deserealization of result of js function
|
2025-05-20 00:40:25 +05:00 |
|
Akulij
|
534a0e6090
|
create init_config method for Runner
|
2025-05-20 00:39:39 +05:00 |
|
Akulij
|
135139514b
|
update btoscript struct definitions
|
2025-05-20 00:39:15 +05:00 |
|
Akulij
|
f6b18af5dd
|
derive clone on BoMessage
|
2025-05-20 00:38:29 +05:00 |
|
Akulij
|
cddf5986ba
|
use from_js
|
2025-05-19 23:58:53 +05:00 |
|
Akulij
|
3f8f25fff9
|
create SerdeError for ScriptError
reason: to handle errors from call of from_js
|
2025-05-19 23:57:22 +05:00 |
|
Akulij
|
eb63743714
|
create js_into for JsValue
reason: wil be way less boilerplate for deserialization of JsValue to defined structs
|
2025-05-19 23:55:44 +05:00 |
|
Akulij
|
c2e02efc47
|
create call_context method for BotFunction
|
2025-05-19 23:54:39 +05:00 |
|
Akulij
|
c8c67b54e3
|
make botFunction a struct
|
2025-05-19 23:54:08 +05:00 |
|
Akulij
|
e7d43adc40
|
create structs for bot's configuration definition
|
2025-05-18 16:10:03 +03:00 |
|
Akulij
|
a6206d3d6f
|
use quickjs_rusty's from_js in tests
|
2025-05-18 16:09:34 +03:00 |
|
Akulij
|
bf032e6ce4
|
create test for deserealization of mainbot.js
|
2025-05-18 16:07:40 +03:00 |
|
Akulij
|
9d5bf86289
|
create recursive_format function just for tests
|
2025-05-18 16:05:10 +03:00 |
|
Akulij
|
08c1b67f02
|
create botscript runner
|
2025-05-10 03:27:35 +03:00 |
|
Akulij
|
4ba2d87ee0
|
create function for user replies to support
Build && Deploy / cargo build (push) Successful in 36s
|
2025-05-09 20:35:39 +03:00 |
|
Akulij
|
2cf71b964d
|
update users state to MessageForwardReply on support reply
|
2025-05-09 19:09:09 +03:00 |
|
Akulij
|
abc079831d
|
create MessageForwardReply state
|
2025-05-09 19:08:37 +03:00 |
|
Akulij
|
2590055ea1
|
fix: enable html parse mode for message sent from support
Build && Deploy / cargo build (push) Successful in 38s
|
2025-05-09 00:29:36 +03:00 |
|
Akulij
|
aaed6fcdca
|
store MessageForward in LeaveApplication callback
|
2025-05-09 00:29:16 +03:00 |
|
Akulij
|
c1c331ab29
|
return chat and message id in answer message
|
2025-05-09 00:24:59 +03:00 |
|
Akulij
|
729f0c3eea
|
return teloxide's Message struct in send_application_to_chat
|
2025-05-09 00:23:41 +03:00 |
|
Akulij
|
27a829b784
|
create AdminMisconfiguration error
|
2025-05-09 00:21:54 +03:00 |
|
Akulij
|
c69b6595fd
|
handle replies to MessageForward from support chat
|
2025-05-08 23:55:23 +03:00 |
|
Akulij
|
091a42bf31
|
fix: message id in MessageForward should be i32
|
2025-05-08 23:23:39 +03:00 |
|
Akulij
|
2acda3087b
|
create MessageForward
|
2025-05-08 23:15:54 +03:00 |
|
Akulij
|
25b980a2ff
|
/users: put @ before username
Build && Deploy / cargo build (push) Successful in 56s
|
2025-05-05 18:52:09 +03:00 |
|
Akulij
|
c2aebcd509
|
create /cancel admin command
Build && Deploy / cargo build (push) Successful in 1m4s
|
2025-05-05 18:46:05 +03:00 |
|
Akulij
|
f6adaea70c
|
create /users admin command
|
2025-05-05 18:44:05 +03:00 |
|
Akulij
|
4277fc5523
|
use answer_message_varianted_silence_flag in replace message
Build && Deploy / cargo build (push) Successful in 56s
|
2025-05-04 19:18:33 +03:00 |
|
Akulij
|
4e95c846d1
|
use text variations in replace_message
|
2025-05-04 19:18:05 +03:00 |
|
Akulij
|
624951392e
|
create answer_message_varianted_silence_flag
reason: to be able to silence if it used as fallback in replace_message
|
2025-05-04 19:17:27 +03:00 |
|
Akulij
|
f69eff72d6
|
store variant in Message
|
2025-05-04 19:14:54 +03:00 |
|
Akulij
|
af53efca0e
|
change variant_text naming asnwer_message_varianted, to not mix up with argument
|
2025-05-04 19:14:11 +03:00 |
|
Akulij
|
d68c7d688c
|
store variants in message info holder
reason: people can go forward with callback and backward and see
defferent message, when they shouldn't
|
2025-05-04 19:10:33 +03:00 |
|
Akulij
|
c371f81008
|
send /start message variants based on meta (?start=...)
Build && Deploy / cargo build (push) Successful in 59s
|
2025-05-04 18:43:10 +03:00 |
|
Akulij
|
d0882ffe0b
|
admin: create /setalternative command to edit message variants
|
2025-05-04 18:42:28 +03:00 |
|
Akulij
|
e68ba4b796
|
implement variant editing thru Edit state
|
2025-05-04 18:41:40 +03:00 |
|
Akulij
|
f86286b1d4
|
use variant in answer_message_varianted
|
2025-05-04 18:11:55 +03:00 |
|
Akulij
|
92b43aed65
|
extend answer_message with LiteralAlternatives in new function
answer_message_variant
|
2025-05-04 18:04:30 +03:00 |
|
Akulij
|
12567a6b97
|
create LiteralAlternative with get/set in db
|
2025-05-04 17:56:06 +03:00 |
|
Akulij
|
09950579da
|
delete files left after diesel orm
|
2025-05-03 16:50:35 +03:00 |
|
Akulij
|
caca9e354d
|
change ProjectPage callback's keyboard generation
|
2025-05-03 16:39:47 +03:00 |
|
Akulij
|
38c38cec8e
|
accept into iterator in buttons_markup macro isntead of limiting to slices
|
2025-05-02 17:57:23 +03:00 |
|
Akulij
|
f3497726a1
|
create test for buttons_markup
|
2025-05-02 17:47:37 +03:00 |
|
Akulij
|
8e93173cba
|
create tests mod inside utils.rs
|
2025-05-02 17:45:53 +03:00 |
|
Akulij
|
f09fc42546
|
create buttons_markup macro
|
2025-05-02 17:45:33 +03:00 |
|