Hirrolot
97e2cb0aa1
Merge pull request #735 from teloxide/consistent-naming
...
Use consistent naming of our crates
2022-10-07 16:44:27 +06:00
Hirrolot
1ab5bdfc77
Use consistent naming of our crates
2022-10-07 16:34:42 +06:00
Hirrolot
4b9aba8e13
Merge pull request #732 from teloxide/refactor-dptree-usage
...
Refactor `dptree` usage
2022-10-07 16:26:05 +06:00
Waffle Maybe
1343015e6c
Update src/dispatching/repls/preamble.md
...
Co-authored-by: Hirrolot <hirrolot@gmail.com>
2022-10-07 14:22:02 +04:00
Maybe Waffle
583e5ea4ab
link "advanced features" in repls
to dispatching
2022-10-07 14:11:56 +04:00
Maybe Waffle
dc9ba4dd11
fixups
2022-10-07 14:06:42 +04:00
Maybe Waffle
c6dd6bed44
I hate rustfmt
2022-10-07 13:59:20 +04:00
Maybe Waffle
db22e20221
Apply suggestions from the review
2022-10-07 13:09:57 +04:00
Maybe Waffle
d9b18abd55
fix docs
2022-10-07 12:27:13 +04:00
Maybe Waffle
83d3a11be9
Apply suggestions from code review
2022-10-07 12:03:34 +04:00
Hirrolot
fe3aa2e798
Refactor dptree
usage
2022-10-07 10:14:36 +06:00
Hirrolot
291b69b477
Merge branch 'dev' into repl_docs_upd
2022-10-07 08:59:47 +06:00
Hirrolot
64359db3da
Update to the latest teloxide-macros
2022-10-06 22:35:32 +06:00
Maybe Waffle
dc652da1ac
fixup tests and examples that use derive(BotCommands)
2022-10-05 10:11:50 +04:00
Maybe Waffle
8dfb5268be
Make BotCommands::parse
accept bot username as &str
2022-10-05 10:09:55 +04:00
Hirrolot
bc609ba9b3
Update the docs of BotCommands
2022-10-04 11:13:03 +06:00
Hirrolot
5922984f6c
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.
2022-10-03 17:54:06 +06:00
Hirrolot
333c88fcb7
Merge branch 'dev' into concrete-error-type-repls
2022-10-02 21:47:46 +06:00
Hirrolot
cde6827cee
Use RequestError
in REPLs
2022-10-02 21:44:04 +06:00
Hirrolot
df58faab97
More #[must_use]
functions.
2022-10-02 10:15:20 +06:00
Maybe Waffle
044e87a985
Remove some previously deprecated items
2022-10-02 00:34:29 +04:00
Hirrolot
94e6f0bd4d
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.
2022-09-29 09:42:50 +06:00
Hirrolot
00efbe163a
Stop using AutoSend
in the examples and docs
2022-09-29 09:37:20 +06:00
Maybe Waffle
bde0345e17
Update docs of REPLs
2022-09-09 23:54:52 +04:00
Maybe Waffle
0807eb57e1
Improve StopFlag
's implementation
2022-09-09 21:45:59 +04:00
Maybe Waffle
9527f82608
Replace StopToken
trait with a single type
2022-09-09 21:30:08 +04:00
Maybe Waffle
11fe8baebf
Correct a comment
2022-09-05 18:56:24 +04:00
Maybe Waffle
8917e05bf8
Turn UpdateListener
's generic error into an associated type
2022-09-05 18:56:15 +04:00
Hirrolot
d0add19b29
Avoid ending punctuation in short list items
2022-08-20 16:16:08 +06:00
Hirrolot
fde52b3988
Merge pull request #690 from teloxide/repls-dispatching-doc
...
Explain the difference between REPLs and dispatching
2022-07-25 18:24:36 +06:00
Waffle Maybe
acd3f4f9a2
Merge pull request #693 from teloxide/nicer_filter_ext_docs
...
Make filter ext docs a little bit nicer
2022-07-25 11:08:20 +04:00
Maybe Waffle
62cbda51d2
Make filter ext docs a little bit nicer
2022-07-24 19:46:48 +04:00
Hirrolot
c7af38ebe3
Merge pull request #691 from teloxide/hide-huge-doc
...
Hide the definitions of endpoints in the doc
2022-07-24 21:23:06 +06:00
Maybe Waffle
1942b8f49b
Improve link formatting
2022-07-24 19:11:57 +04:00
Hirrolot
3f546fd637
Merge branch 'repls-dispatching-doc' of https://github.com/teloxide/teloxide into repls-dispatching-doc
2022-07-24 19:41:30 +06:00
Hirrolot
0f526ebe99
Simplify the doc sentence (code review)
2022-07-24 19:40:35 +06:00
Hirrolot
ab0292649f
Apply a tiny doc review suggestion
...
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
2022-07-24 19:32:09 +06:00
Hirrolot
8eaadf8f94
Expand a doc sentence according to code review
2022-07-24 19:30:41 +06:00
Hirrolot
793dbcfcdb
Make dialogue
doc examples verifiable
2022-07-24 19:14:22 +06:00
Hirrolot
4e2265a217
Hide the definitions of endpoints in the doc
...
Makes scrolling a bit easier.
2022-07-24 19:03:50 +06:00
Hirrolot
a59fb0ddea
Fix formatting
2022-07-24 19:01:36 +06:00
Hirrolot
7b18d62296
A doc fix for Dispatcher
2022-07-24 18:57:33 +06:00
Hirrolot
3bdd6bdcb7
Lay out the difference between REPLs and dispatching
2022-07-24 18:56:53 +06:00
Hirrolot
e7ad0e4c80
Simplify the implementation of REPLs
2022-07-24 14:53:28 +06:00
Maybe Waffle
fd12e1eb06
fix typos
2022-07-22 15:52:25 +04:00
Maybe Waffle
52096d269f
Add more #[must_use]
attributes for appropriate functions
2022-07-22 13:53:46 +04:00
Hirrolot
a22c91df6c
Adjust imports a little bit in examples/purchase.rs
2022-07-21 16:53:52 +06:00
Maybe Waffle
0cb4bfef36
Fix deprecation version
2022-07-21 13:35:48 +04:00
Maybe Waffle
84beedfff4
make schema
in docs nicer
2022-07-21 13:32:05 +04:00
Maybe Waffle
627b8624f3
Do not ignore
tests in dispatching
...
When test is ignored rustdoc shows a warning sign which is disturbing.
2022-07-21 13:32:05 +04:00