Commit graph

2896 commits

Author SHA1 Message Date
Hirrolot
1ab5bdfc77 Use consistent naming of our crates 2022-10-07 16:34:42 +06:00
Waffle Maybe
f52d11d246
Merge pull request #712 from teloxide/repl_docs_upd
Update docs of REPLs
2022-10-07 14:25:16 +04: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
291b69b477
Merge branch 'dev' into repl_docs_upd 2022-10-07 08:59:47 +06:00
Waffle Maybe
abebad9439
Merge pull request #730 from teloxide/updtlxdcr08
Update `teloxide-core` to `0.8.0`
2022-10-06 22:12:01 +04:00
Maybe Waffle
d45a962a63 Update teloxide-core to 0.8.0 2022-10-06 22:02:28 +04:00
Hirrolot
cb7123b222
Merge pull request #729 from teloxide/update-macros
Update `teloxide-macros` to v0.7.0
2022-10-06 23:58:09 +06:00
Hirrolot
19830daf8d Update teloxide-macros to v0.7.0 2022-10-06 23:52:49 +06:00
Hirrolot
64359db3da Update to the latest teloxide-macros 2022-10-06 22:35:32 +06:00
Hirrolot
51e3cafe56
Merge pull request #728 from teloxide/bot_commands_parse_and_str
Make `BotCommands::parse` accept bot username as `&str`
2022-10-06 15:44:52 +06:00
Maybe Waffle
dc652da1ac fixup tests and examples that use derive(BotCommands) 2022-10-05 10:11:50 +04:00
Maybe Waffle
107d2c8b99 Update changelog 2022-10-05 10:11:47 +04:00
Maybe Waffle
6ded398d5d Update teloxide-macros 2022-10-05 10:09:55 +04:00
Maybe Waffle
8dfb5268be Make BotCommands::parse accept bot username as &str 2022-10-05 10:09:55 +04:00
Hirrolot
f7684fef29
Merge pull request #727 from teloxide/update-bot-commands-docs
Update the docs of `BotCommands`
2022-10-05 09:58:57 +06:00
Hirrolot
bc609ba9b3 Update the docs of BotCommands 2022-10-04 11:13:03 +06:00
Waffle Maybe
13a10110d4
Merge pull request #718 from teloxide/code_style
Update code style
2022-10-04 05:30:42 +04:00
Waffle Maybe
243bfa8460
Apply suggestions from code review
Co-authored-by: Hirrolot <hirrolot@gmail.com>
2022-10-03 20:49:25 +04:00
Hirrolot
a461061c26
Merge pull request #725 from teloxide/refactor-examples-style
Refactor examples style
2022-10-03 18:29:31 +06:00
Hirrolot
a3116bb0d6 Fix a code typo in README.md 2022-10-03 18:01:24 +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
a137b41ab2 Use same identifiers across the examples 2022-10-03 17:07:38 +06:00
Waffle Maybe
1b983e043f
Apply suggestions from code review
Co-authored-by: Hirrolot <hirrolot@gmail.com>
2022-10-03 13:48:14 +04:00
Hirrolot
4246455ccd
Merge pull request #724 from teloxide/concrete-error-type-repls
Use `RequestError` in REPLs
2022-10-03 15:33:09 +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
9774743562
Merge pull request #723 from teloxide/more-must-uses
More `#[must_use]` functions
2022-10-02 21:17:30 +06:00
Hirrolot
d95f0c717f Refactor indentation in CHANGELOG.md 2022-10-02 21:14:35 +06:00
Hirrolot
df58faab97 More #[must_use] functions. 2022-10-02 10:15:20 +06:00
Waffle Maybe
a8c225c45c
Merge pull request #720 from teloxide/remove_deprecated
Remove some previously deprecated items
2022-10-02 06:22:52 +04:00
Maybe Waffle
044e87a985 Remove some previously deprecated items 2022-10-02 00:34:29 +04:00
Waffle Maybe
de3429d082
Merge pull request #719 from teloxide/update-readme
Update the number of repos dependant on teloxide
2022-10-01 17:00:42 +04:00
Hirrolot
d1bef5112e
Update the number of repos dependant on teloxide 2022-10-01 17:11:15 +06:00
Maybe Waffle
562f047902 COpy some code style rules from r-a 2022-09-29 19:17:16 +04:00
Maybe Waffle
5e87accfc7 Codify &str -> String conversions in code style 2022-09-29 19:05:31 +04:00
Maybe Waffle
36f0226751 Improve readability of CODE_STYLE.md 2022-09-29 19:01:03 +04:00
Hirrolot
305fddd7e9
Merge pull request #716 from teloxide/update-auto-send
Stop using `AutoSend` in the examples and docs
2022-09-29 14:43:32 +06:00
Hirrolot
1796e2c9f1 Update MSRV to 1.64.0 (CI) 2022-09-29 09:51:56 +06: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
Waffle Maybe
8272d4139a
Merge pull request #709 from teloxide/stop_refactor
Refactor `stop_token` module
2022-09-25 05:24:06 +04:00
Waffle Maybe
0bde3f4b38
Merge pull request #715 from teloxide/heroku_no_token_in_url
Remove `{token}` from webhook url in heroku example
2022-09-25 05:01:28 +04:00
Maybe Waffle
78a96381dc Remove {token} from webhook url in heroku example 2022-09-25 01:06:11 +04:00
Hirrolot
be9c20ef32
Merge pull request #713 from teloxide/improve_buttons_example2
Properly handle callback queries in `examples/buttons.rs`
2022-09-25 01:54:54 +06:00