Commit graph

1646 commits

Author SHA1 Message Date
Hirrolot
f54db300ed Implement the CommandRepl trait
Former-commit-id: 739772929b
2022-10-11 14:54:51 +06:00
Waffle Maybe
eece564727 Merge pull request #743 from TmLev/master
Sync docs & comments with code, fix grammar and typos

Former-commit-id: 512e785999
2022-10-10 20:25:43 +04:00
Lev Khoroshansky
a5419f3475 fix: Grammar & typos
Former-commit-id: b3fe220d99
2022-10-09 19:42:20 +03:00
Lev Khoroshansky
fdaddb3902 fix: Sync docs & comments with code
Former-commit-id: 6ebf51efeb
2022-10-09 19:41:52 +03:00
Hirrolot
b58f731ef3 Simplify the brief description of crate::stop
Usually, we have very brief descriptions of modules. I see no reason to make it elaborate -- it does even contain only a few items.

Former-commit-id: a7981cc99b
2022-10-07 22:50:08 +06:00
Hirrolot
cedc7df410 Merge branch 'dev' into v0.11.0
Former-commit-id: cfc0776621
2022-10-07 17:23:52 +06:00
Hirrolot
d680bef0ba Release v0.11.0
Former-commit-id: 4e56dd29b1
2022-10-07 16:55:57 +06:00
Hirrolot
36290a22c3 Merge pull request #735 from teloxide/consistent-naming
Use consistent naming of our crates

Former-commit-id: 97e2cb0aa1
2022-10-07 16:44:27 +06:00
Hirrolot
01f0818e94 Use consistent naming of our crates
Former-commit-id: 1ab5bdfc77
2022-10-07 16:34:42 +06:00
Hirrolot
9cdfe7108a Merge pull request #732 from teloxide/refactor-dptree-usage
Refactor `dptree` usage

Former-commit-id: 4b9aba8e13
2022-10-07 16:26:05 +06:00
Waffle Maybe
7ca26fbde1 Update src/dispatching/repls/preamble.md
Co-authored-by: Hirrolot <hirrolot@gmail.com>
Former-commit-id: 1343015e6c
2022-10-07 14:22:02 +04:00
Maybe Waffle
af5f27feee link "advanced features" in repls to dispatching
Former-commit-id: 583e5ea4ab
2022-10-07 14:11:56 +04:00
Maybe Waffle
0daff74d14 fixups
Former-commit-id: dc9ba4dd11
2022-10-07 14:06:42 +04:00
Maybe Waffle
8bfa8b542d I hate rustfmt
Former-commit-id: c6dd6bed44
2022-10-07 13:59:20 +04:00
Maybe Waffle
fde91dacf4 Apply suggestions from the review
Former-commit-id: db22e20221
2022-10-07 13:09:57 +04:00
Maybe Waffle
bb686ebd8e fix docs
Former-commit-id: d9b18abd55
2022-10-07 12:27:13 +04:00
Maybe Waffle
a3632d65da Apply suggestions from code review
Former-commit-id: 83d3a11be9
2022-10-07 12:03:34 +04:00
Hirrolot
744679419a Refactor dptree usage
Former-commit-id: fe3aa2e798
2022-10-07 10:14:36 +06:00
Hirrolot
5dd8d195bc Merge branch 'dev' into repl_docs_upd
Former-commit-id: 291b69b477
2022-10-07 08:59:47 +06:00
Hirrolot
ee07a6f0b2 Update to the latest teloxide-macros
Former-commit-id: 64359db3da
2022-10-06 22:35:32 +06:00
Maybe Waffle
529a316b0f fixup tests and examples that use derive(BotCommands)
Former-commit-id: dc652da1ac
2022-10-05 10:11:50 +04:00
Maybe Waffle
466900ee46 Make BotCommands::parse accept bot username as &str
Former-commit-id: 8dfb5268be
2022-10-05 10:09:55 +04:00
Hirrolot
f5d5a38f8a Update the docs of BotCommands
Former-commit-id: bc609ba9b3
2022-10-04 11:13:03 +06:00
Hirrolot
53be9d0e92 Reorder parameters in the examples
In reordering the parameters, I stick the following principle: place parameters from least changing to most changing. Thus, we have config and bot right from the beginning, next a dialogue with a possible payload, and next updates such as messages, inline queries, etc. This principle is used in languages with a native support for currying, although in Rust people appear to order parameters arbitrarily, so this commit is mostly for the sake of consistency.


Former-commit-id: 5922984f6c
2022-10-03 17:54:06 +06:00
Hirrolot
b058de6de9 Merge branch 'dev' into concrete-error-type-repls
Former-commit-id: 333c88fcb7
2022-10-02 21:47:46 +06:00
Hirrolot
b0feab6e9a Use RequestError in REPLs
Former-commit-id: cde6827cee
2022-10-02 21:44:04 +06:00
Hirrolot
567cd9ced5 More #[must_use] functions.
Former-commit-id: df58faab97
2022-10-02 10:15:20 +06:00
Maybe Waffle
ae430be051 Remove some previously deprecated items
Former-commit-id: 044e87a985
2022-10-02 00:34:29 +04:00
Hirrolot
bd78a3bf70 Collapse and show the endpoints in the docs
If we remove empty lines between these endpoints, we'll make the code shorter. Additionally, since we do no longer need `AutoSend`, the code is also a bit less convoluted.


Former-commit-id: 94e6f0bd4d
2022-09-29 09:42:50 +06:00
Hirrolot
05501015ee Stop using AutoSend in the examples and docs
Former-commit-id: 00efbe163a
2022-09-29 09:37:20 +06:00
Maybe Waffle
599d4dea25 Update docs of REPLs
Former-commit-id: bde0345e17
2022-09-09 23:54:52 +04:00
Maybe Waffle
1fad4ab3b3 Improve StopFlag's implementation
Former-commit-id: 0807eb57e1
2022-09-09 21:45:59 +04:00
Maybe Waffle
5c40bfa78c Replace StopToken trait with a single type
Former-commit-id: 9527f82608
2022-09-09 21:30:08 +04:00
Maybe Waffle
e9e0175771 Correct a comment
Former-commit-id: 11fe8baebf
2022-09-05 18:56:24 +04:00
Maybe Waffle
f555c9739e Turn UpdateListener's generic error into an associated type
Former-commit-id: 8917e05bf8
2022-09-05 18:56:15 +04:00
Hirrolot
0808ec34be Avoid ending punctuation in short list items
Former-commit-id: d0add19b29
2022-08-20 16:16:08 +06:00
Hirrolot
fe10cbce67 Merge pull request #690 from teloxide/repls-dispatching-doc
Explain the difference between REPLs and dispatching

Former-commit-id: fde52b3988
2022-07-25 18:24:36 +06:00
Waffle Maybe
2df4dfd61b Merge pull request #693 from teloxide/nicer_filter_ext_docs
Make filter ext docs a little bit nicer

Former-commit-id: acd3f4f9a2
2022-07-25 11:08:20 +04:00
Maybe Waffle
8a92959229 Make filter ext docs a little bit nicer
Former-commit-id: 62cbda51d2
2022-07-24 19:46:48 +04:00
Hirrolot
09ca45a67c Merge pull request #691 from teloxide/hide-huge-doc
Hide the definitions of endpoints in the doc

Former-commit-id: c7af38ebe3
2022-07-24 21:23:06 +06:00
Maybe Waffle
ef46649b23 Improve link formatting
Former-commit-id: 1942b8f49b
2022-07-24 19:11:57 +04:00
Hirrolot
c6ea1dd894 Merge branch 'repls-dispatching-doc' of https://github.com/teloxide/teloxide into repls-dispatching-doc
Former-commit-id: 3f546fd637
2022-07-24 19:41:30 +06:00
Hirrolot
a654491d6f Simplify the doc sentence (code review)
Former-commit-id: 0f526ebe99
2022-07-24 19:40:35 +06:00
Hirrolot
40e311d3a0 Apply a tiny doc review suggestion
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
Former-commit-id: ab0292649f
2022-07-24 19:32:09 +06:00
Hirrolot
8ebb4826cb Expand a doc sentence according to code review
Former-commit-id: 8eaadf8f94
2022-07-24 19:30:41 +06:00
Hirrolot
e7fb02e8fe Make dialogue doc examples verifiable
Former-commit-id: 793dbcfcdb
2022-07-24 19:14:22 +06:00
Hirrolot
b8b1cb0496 Hide the definitions of endpoints in the doc
Makes scrolling a bit easier.


Former-commit-id: 4e2265a217
2022-07-24 19:03:50 +06:00
Hirrolot
839d4705ae Fix formatting
Former-commit-id: a59fb0ddea
2022-07-24 19:01:36 +06:00
Hirrolot
7c1af1265b A doc fix for Dispatcher
Former-commit-id: 7b18d62296
2022-07-24 18:57:33 +06:00
Hirrolot
3038892e32 Lay out the difference between REPLs and dispatching
Former-commit-id: 3bdd6bdcb7
2022-07-24 18:56:53 +06:00