443 Commits

Author SHA1 Message Date
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
All checks were successful
Build && Deploy / cargo build (push) Successful in 56s
2025-05-05 18:52:09 +03:00
Akulij
c2aebcd509 create /cancel admin command
All checks were successful
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
6088050d1a cargo add itertools 2025-05-05 18:43:50 +03:00
Akulij
4277fc5523 use answer_message_varianted_silence_flag in replace message
All checks were successful
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=...)
All checks were successful
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
6099a2ba81 cd.yaml: call webhook to deploy built binary
All checks were successful
Build && Deploy / cargo build (push) Successful in 53s
2025-05-04 17:27:38 +03:00
Akulij
7bd3df4d81 cd.yaml: add id for bots artifact uploading 2025-05-04 17:24:11 +03:00
Akulij
1bb3970fa6 cd.yaml: use christopherhx/gitea-upload-artifact@v4 instead of defaults
reason: this one has patch to support gitea (default detects gitea as GHES)
2025-05-04 17:22:51 +03:00
Akulij
8f27d61284 cd.yaml: fix build job name
All checks were successful
Build && Deploy / cargo build (push) Successful in 53s
2025-05-04 01:09:34 +03:00
Akulij
d0cf2fd1b7 cd.yaml: fix rust toolchain cache restore paths
All checks were successful
Build && Deploy / cargo build (push) Successful in 52s
2025-05-04 01:04:08 +03:00
Akulij
12d97b2197 cd.yaml: do not use runner's os as cache key, since it seems buggy
Some checks failed
Build && Deploy / cargo build (push) Has been cancelled
2025-05-04 00:56:37 +03:00
Akulij
3c1ea8182a cd.yaml: add paths to project dependencies cache
All checks were successful
Build && Deploy / cargo build (push) Successful in 4m20s
2025-05-04 00:54:43 +03:00
Akulij
49ee87488a cd.yaml: delete tests
All checks were successful
Build && Deploy / cargo build (push) Successful in 3m30s
2025-05-04 00:51:38 +03:00
Akulij
caae3199db cd.yaml: fix cache ids 2025-05-04 00:49:36 +03:00
Akulij
8bdaa85518 cd.yaml: add some tests
Some checks failed
Build && Deploy / cargo build (push) Failing after 3m56s
2025-05-04 00:47:02 +03:00
Akulij
539bbbb970 cd.yaml: new try on caching
All checks were successful
Build && Deploy / cargo build (push) Successful in 4m13s
2025-05-04 00:41:55 +03:00
Akulij
0d5bccddac cd.yaml: fix project dependency cache key
All checks were successful
Build && Deploy / cargo build (push) Successful in 3m48s
2025-05-04 00:36:36 +03:00
Akulij
77474f9e43 cd.yaml: use setup-rust-toolchain
All checks were successful
Build && Deploy / cargo build (push) Successful in 4m49s
2025-05-04 00:30:39 +03:00
Akulij
2565d4b9c1 use rust-cache
Some checks failed
Build && Deploy / cargo build (push) Failing after 26s
2025-05-04 00:26:10 +03:00
Akulij
24e4cb9d0a temporary delete toochain installation
Some checks failed
Build && Deploy / cargo build (push) Failing after 9s
2025-05-04 00:08:16 +03:00
Akulij
8cd8f6306a cd.yaml: fix cache paths for rust toolchain
Some checks failed
Build && Deploy / cargo build (push) Failing after 32s
2025-05-04 00:00:51 +03:00
Akulij
4827ce030c cd.yaml: add caching for projects dependencies
Some checks failed
Build && Deploy / cargo build (push) Failing after 32s
2025-05-03 23:59:19 +03:00
Akulij
11267704c0 cd.yaml: fix names for save/restore rust toolchain 2025-05-03 23:57:43 +03:00
Akulij
633ef93583 cd.yaml: install rust toolchain with its caching
All checks were successful
Build && Deploy / cargo build (push) Successful in 7m16s
2025-05-03 23:48:37 +03:00
Akulij
9b6579327d cd.yaml: delete toolchain installation to test if it's builtin
Some checks failed
Build && Deploy / cargo build (push) Failing after 5s
2025-05-03 23:32:24 +03:00
Akulij
3d9f1228cc cd.yaml: fix path in upload-artifacts
Some checks failed
Build && Deploy / cargo build (push) Has been cancelled
2025-05-03 23:29:32 +03:00
Akulij
bcfc36e5d0 cd.yaml: delete ls 2025-05-03 23:29:10 +03:00
Akulij
4b4ce03a3b use actions-rs/toolchain
All checks were successful
Build && Deploy / cargo build (push) Successful in 4m32s
2025-05-03 23:23:53 +03:00
Akulij
43f450d15d change list
Some checks failed
Build && Deploy / cargo build (push) Has been cancelled
2025-05-03 23:19:43 +03:00
Akulij
84ac12a98e reorder to download toolchain before checkout
All checks were successful
Build && Deploy / cargo build (push) Successful in 5m4s
2025-05-03 23:12:16 +03:00
Akulij
2a4179d0bd test debug: list target out
Some checks failed
Build && Deploy / cargo build (push) Has been cancelled
2025-05-03 23:11:13 +03:00
Akulij
2d1ed958b9 cd.yaml: upload release binary as artifact
All checks were successful
Build && Deploy / cargo build (push) Successful in 8m35s
2025-05-03 22:46:45 +03:00
Akulij
f4f5e13978 fix cd.yaml: build release target, instead of debug 2025-05-03 22:43:25 +03:00
Akulij
dba7933c63 create basic template for Build and Deploy in gitea
All checks were successful
Build && Deploy / cargo build (push) Successful in 5m16s
2025-05-03 22:11:28 +03:00