Commit graph

1632 commits

Author SHA1 Message Date
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
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
Hirrolot
07652a7565 Simplify the implementation of REPLs
Former-commit-id: e7ad0e4c80
2022-07-24 14:53:28 +06:00
Maybe Waffle
611a38990e fix typos
Former-commit-id: fd12e1eb06
2022-07-22 15:52:25 +04:00
Maybe Waffle
f12cac7a43 Add more #[must_use] attributes for appropriate functions
Former-commit-id: 52096d269f
2022-07-22 13:53:46 +04:00
Hirrolot
3dd8787f13 Adjust imports a little bit in examples/purchase.rs
Former-commit-id: a22c91df6c
2022-07-21 16:53:52 +06:00
Maybe Waffle
e1419f578f Fix deprecation version
Former-commit-id: 0cb4bfef36
2022-07-21 13:35:48 +04:00
Maybe Waffle
04bcce7701 make schema in docs nicer
Former-commit-id: 84beedfff4
2022-07-21 13:32:05 +04:00
Maybe Waffle
a4ecaa03af Do not ignore tests in dispatching
When test is ignored rustdoc shows a warning sign which is disturbing.


Former-commit-id: 627b8624f3
2022-07-21 13:32:05 +04:00
Maybe Waffle
11231655c2 Move ctrlc handler enable function to DispatcherBuilder
This helps with consistency -- every setting is changed in builder.
Also `Self -> Self` function sometimes plays more nicely with borrowck.


Former-commit-id: dd4af30727
2022-07-21 13:32:05 +04:00
Hirrolot
ac3a42ff0a Link Dispatcher from the docs of REPLs
Former-commit-id: 4fb8a120ea
2022-07-20 19:40:32 +06:00
Hirrolot
d919c99b69 Improve the dispatching explanation (docs)
Former-commit-id: 9ab3b3a1c5
2022-07-20 17:44:39 +06:00
Hirrolot
db5747eb4e Ignore one doc example
Former-commit-id: b48f87573a
2022-07-19 19:39:25 +06:00
Hirrolot
411c851a2f Update the dispatching example explanation
Former-commit-id: bc8b86181f
2022-07-19 19:34:35 +06:00
Maybe Waffle
cc74e7517d Update deps
Former-commit-id: ed88e43afa
2022-07-19 14:30:18 +04:00
Maybe Waffle
f6e7c01a45 Update dptree
Former-commit-id: eb8b384f46
2022-07-18 15:56:45 +04:00