Commit graph

2879 commits

Author SHA1 Message Date
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
71ad64594d Update changelog
Former-commit-id: 107d2c8b99
2022-10-05 10:11:47 +04:00
Maybe Waffle
c01bc8ab6d Update teloxide-macros
Former-commit-id: 6ded398d5d
2022-10-05 10:09:55 +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
b061a21881 Merge pull request #727 from teloxide/update-bot-commands-docs
Update the docs of `BotCommands`

Former-commit-id: f7684fef29
2022-10-05 09:58:57 +06:00
Hirrolot
f5d5a38f8a Update the docs of BotCommands
Former-commit-id: bc609ba9b3
2022-10-04 11:13:03 +06:00
Waffle Maybe
c7aa76ad39 Merge pull request #718 from teloxide/code_style
Update code style

Former-commit-id: 13a10110d4
2022-10-04 05:30:42 +04:00
Waffle Maybe
95bf58bff0 Apply suggestions from code review
Co-authored-by: Hirrolot <hirrolot@gmail.com>
Former-commit-id: 243bfa8460
2022-10-03 20:49:25 +04:00
Hirrolot
3cad0fbff4 Merge pull request #725 from teloxide/refactor-examples-style
Refactor examples style

Former-commit-id: a461061c26
2022-10-03 18:29:31 +06:00
Hirrolot
563c56ef3a Fix a code typo in README.md
Former-commit-id: a3116bb0d6
2022-10-03 18:01:24 +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
d3d7cc2fa9 Use same identifiers across the examples
Former-commit-id: a137b41ab2
2022-10-03 17:07:38 +06:00
Waffle Maybe
72a1be63f6 Apply suggestions from code review
Co-authored-by: Hirrolot <hirrolot@gmail.com>
Former-commit-id: 1b983e043f
2022-10-03 13:48:14 +04:00
Hirrolot
2bdea18ec3 Merge pull request #724 from teloxide/concrete-error-type-repls
Use `RequestError` in REPLs

Former-commit-id: 4246455ccd
2022-10-03 15:33:09 +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
7920f47d49 Merge pull request #723 from teloxide/more-must-uses
More `#[must_use]` functions

Former-commit-id: 9774743562
2022-10-02 21:17:30 +06:00
Hirrolot
c2d4d4cfbf Refactor indentation in CHANGELOG.md
Former-commit-id: d95f0c717f
2022-10-02 21:14:35 +06:00
Hirrolot
567cd9ced5 More #[must_use] functions.
Former-commit-id: df58faab97
2022-10-02 10:15:20 +06:00
Waffle Maybe
cdd5ac94ef Merge pull request #720 from teloxide/remove_deprecated
Remove some previously deprecated items

Former-commit-id: a8c225c45c
2022-10-02 06:22:52 +04:00
Maybe Waffle
ae430be051 Remove some previously deprecated items
Former-commit-id: 044e87a985
2022-10-02 00:34:29 +04:00
Waffle Maybe
cb00c83ecd Merge pull request #719 from teloxide/update-readme
Update the number of repos dependant on teloxide

Former-commit-id: de3429d082
2022-10-01 17:00:42 +04:00
Hirrolot
8bb502d91c Update the number of repos dependant on teloxide
Former-commit-id: d1bef5112e
2022-10-01 17:11:15 +06:00
Maybe Waffle
35cc2d1b2b COpy some code style rules from r-a
Former-commit-id: 562f047902
2022-09-29 19:17:16 +04:00
Maybe Waffle
bb4abf6d98 Codify &str -> String conversions in code style
Former-commit-id: 5e87accfc7
2022-09-29 19:05:31 +04:00
Maybe Waffle
45c1324cb3 Improve readability of CODE_STYLE.md
Former-commit-id: 36f0226751
2022-09-29 19:01:03 +04:00
Hirrolot
4b1a309621 Merge pull request #716 from teloxide/update-auto-send
Stop using `AutoSend` in the examples and docs

Former-commit-id: 305fddd7e9
2022-09-29 14:43:32 +06:00
Hirrolot
0285d5d38b Update MSRV to 1.64.0 (CI)
Former-commit-id: 1796e2c9f1
2022-09-29 09:51:56 +06: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
Waffle Maybe
2e3d678987 Merge pull request #709 from teloxide/stop_refactor
Refactor `stop_token` module

Former-commit-id: 8272d4139a
2022-09-25 05:24:06 +04:00
Waffle Maybe
3a97c08c0e Merge pull request #715 from teloxide/heroku_no_token_in_url
Remove `{token}` from webhook url in heroku example

Former-commit-id: 0bde3f4b38
2022-09-25 05:01:28 +04:00
Maybe Waffle
f2c50b7dba Remove {token} from webhook url in heroku example
Former-commit-id: 78a96381dc
2022-09-25 01:06:11 +04:00
Hirrolot
1af8b0f904 Merge pull request #713 from teloxide/improve_buttons_example2
Properly handle callback queries in `examples/buttons.rs`

Former-commit-id: be9c20ef32
2022-09-25 01:54:54 +06:00
Maybe Waffle
f10bb5c3e0 Properly handle callback queries in examples/buttons.rs
Former-commit-id: 376ffc85f9
2022-09-12 16:50:59 +04:00
Waffle Maybe
a76b5d8a01 Merge pull request #710 from teloxide/updnght
Update nightly version in CI

Former-commit-id: ececfaf62b
2022-09-11 22:56:42 +04:00
Maybe Waffle
49179dd274 Update nightly version in CI
Former-commit-id: 721908c08e
2022-09-09 21:59:11 +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
Waffle Maybe
7a3257a5f4 Merge pull request #708 from teloxide/fix_buttons_example
Fix command parsing in `examples/button.rs`

Former-commit-id: 550982b7fe
2022-09-08 18:44:39 +04:00
Maybe Waffle
ead0464ddc Fix command parsing in examples/button.rs
Former-commit-id: f39180543e
2022-09-08 18:36:08 +04:00
Waffle Maybe
0ebb460247 Merge pull request #704 from teloxide/update_macros
update `teloxide-macros`

Former-commit-id: 748ff1da11
2022-09-06 07:52:06 +04:00
Hirrolot
1dcc257bb0 Merge branch 'dev' into update_macros
Former-commit-id: bd15d4beac
2022-09-06 09:48:30 +06:00
Waffle Maybe
811b69a233 Merge pull request #705 from teloxide/update_listener_type_err
Turn `UpdateListener`'s generic error into an associated type

Former-commit-id: 014075573d
2022-09-06 07:25:35 +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
Maybe Waffle
764fa1e9d8 Update changelog
Former-commit-id: 4cb9d93d59
2022-09-04 17:01:13 +04:00
Maybe Waffle
4c4797d85e update teloxide-macros
Former-commit-id: 44e134c47e
2022-08-28 15:19:38 +04:00
Waffle Maybe
c6bfe682df Merge pull request #701 from teloxide/avoid-short-list-punctuation
Avoid ending punctuation in short list items

Former-commit-id: 6d668ec06b
2022-08-25 11:58:50 +04:00
Hirrolot
0808ec34be Avoid ending punctuation in short list items
Former-commit-id: d0add19b29
2022-08-20 16:16:08 +06:00