Commit graph

3990 commits

Author SHA1 Message Date
Maybe Waffle
013cd8e01d use real teloxide for tests 2022-10-03 16:28:45 +04:00
Maybe Waffle
66e7ebd7f1 Actually tests that macros work 2022-10-03 16:26:22 +04:00
Hirrolot
822300eb89
Merge pull request #33 from teloxide/fullpath
Use full path when implementing `BotCommands`
2022-10-03 18:09:17 +06:00
Hirrolot
ee2d480c3f
Merge pull request #32 from teloxide/no-authors-qqq
Remove the `authors` field from `Cargo.toml`
2022-10-03 18:08:35 +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
6e9109b728
Merge pull request #258 from teloxide/v08
Dump version `0.7.1` -> `0.8.0`
2022-10-03 15:01:51 +06:00
Waffle Maybe
0d57cc49b0
Merge pull request #256 from teloxide/requester_docs
Expand `Requester` docs in an attempt to make them useful
2022-10-03 13:01:29 +04:00
Waffle Maybe
dbf4a4077e
Merge pull request #257 from teloxide/rustdocflags
Fix how we set `rustdocflags` in the cargo config
2022-10-03 11:59:55 +04:00
Maybe Waffle
35d87e415c Dump version 0.7.1 -> 0.8.0 2022-10-03 00:08:00 +00:00
Maybe Waffle
5fc3d2b81d Fix how we set rustdocflags in the cargo config 2022-10-03 04:01:23 +04:00
Maybe Waffle
d593ba8178 Expand Requester docs in an attempt to make them useful 2022-10-02 23:39:34 +00: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
Maybe Waffle
dad9880da0 Use full path when implementing BotCommands 2022-10-02 16:11:22 +04:00
Hirrolot
567cd9ced5 More #[must_use] functions.
Former-commit-id: df58faab97
2022-10-02 10:15:20 +06:00
Waffle Maybe
5921b15db3
Merge pull request #255 from teloxide/no_file__fields_dup
Remove `file_` prefix from `File` fields
2022-10-02 06:27:34 +04:00
Hirrolot
35aab3d1e6
Merge branch 'master' into no_file__fields_dup 2022-10-02 08:23:54 +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
Waffle Maybe
8d55a4a258
Merge pull request #254 from teloxide/message_id
Typed `MessageId`
2022-10-02 06:22:11 +04:00
Maybe Waffle
ae430be051 Remove some previously deprecated items
Former-commit-id: 044e87a985
2022-10-02 00:34:29 +04:00
Maybe Waffle
30ad2b854f Update changelog 2022-10-01 19:56:36 +04:00
Maybe Waffle
24db0e29d3 Remove file_ prefix from File fields
This also removes `Deref<Target = FileMeta>` impls from
`Animation`, `Audio`, `Document`, `PhotoSize` (?), `Video`, `VideoNote`
and `Voice` -- they are not really necessary with the `file_` prefix
removed.
2022-10-01 19:56:36 +04:00
Maybe Waffle
57d08938e4 Update changelog 2022-10-01 17:08:27 +04:00
Maybe Waffle
0f08fd6cdb fmt? 2022-10-01 17:07:32 +04:00
Maybe Waffle
13e5ed8fb4 Fix MessageId deserialization 2022-10-01 17:07:32 +04:00
Maybe Waffle
f5a3b55435 Use typed MessageId in methods 2022-10-01 17:07:28 +04:00
Maybe Waffle
1b9092c704 Start using MessageId in APIs 2022-10-01 17:06:19 +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
Waffle Maybe
7a31bcea91
Merge pull request #251 from teloxide/botapi62
Bot API 6.2 support
2022-10-01 15:09:52 +04:00
Waffle Maybe
021ad7b6cb
Merge pull request #252 from teloxide/webm_sticker_fix
Fix serialization of video stickers
2022-10-01 15:09:04 +04:00
Waffle Maybe
a304ea4174
Merge pull request #253 from teloxide/flatten_meta
Replace `file_{[unique_]id,size}` fields with `FileMeta`
2022-10-01 15:08:39 +04: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
Maybe Waffle
534d478973 Remove the authors field from Cargo.toml 2022-09-29 14:11:51 +04:00
Maybe Waffle
cd10ef00d4 Replace file_{[unique_]id,size} fields with FileMeta 2022-09-29 13:22:38 +04:00
Maybe Waffle
c640177c20 supress clippy 2022-09-29 13:15:01 +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
Maybe Waffle
a5f2e5984c update changelog and docs 2022-09-25 21:41:43 +04:00
Maybe Waffle
8cad09498c Fix sticker tests 2022-09-25 21:41:43 +04:00