Commit graph

4174 commits

Author SHA1 Message Date
Maybe Waffle
c6c2cd3f6f Update teloxide-core to 0.8.0
Former-commit-id: d45a962a63
2022-10-06 22:02:28 +04:00
Hirrolot
8384255a37 Merge pull request #729 from teloxide/update-macros
Update `teloxide-macros` to v0.7.0

Former-commit-id: cb7123b222
2022-10-06 23:58:09 +06:00
Hirrolot
a584215376 Update teloxide-macros to v0.7.0
Former-commit-id: 19830daf8d
2022-10-06 23:52:49 +06:00
Hirrolot
10cf4fc0e1
Merge pull request #38 from teloxide/v0.7.0
Release v0.7.0
2022-10-06 23:48:37 +06:00
Hirrolot
1ec3eabfeb Move to the 2021 edition 2022-10-06 23:37:04 +06:00
Hirrolot
d17ebafb38 Remove #[derive(Debug)]
For some reason, it doesn't allow publishing a new release.
2022-10-06 23:08:34 +06:00
Hirrolot
e5d08c168e Release v0.7.0 2022-10-06 22:54:30 +06:00
Hirrolot
ee07a6f0b2 Update to the latest teloxide-macros
Former-commit-id: 64359db3da
2022-10-06 22:35:32 +06:00
Hirrolot
e715105dda
Merge pull request #37 from teloxide/enhance-path-error-msg
Enhance an error message about a path
2022-10-06 18:06:00 +06:00
Hirrolot
ff2b479dc9
Update the error message wording
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
2022-10-06 18:02:28 +06:00
Hirrolot
6ae6b0024e Enhance an error message about a path 2022-10-06 17:54:31 +06:00
Waffle Maybe
5d6cce4121
Merge pull request #35 from teloxide/bot_name_and_str
adapt to teloxide changes
2022-10-06 15:29:20 +04:00
Waffle Maybe
6c026dde7f
Merge pull request #36 from teloxide/parse_with_use_path
Parse path instead of string when parsing `parse_with`
2022-10-06 15:28:45 +04:00
Maybe Waffle
ff1e0fc305 Parse path instead of string when parsing parse_with 2022-10-06 14:30:52 +04:00
Hirrolot
b530f63608 Merge pull request #728 from teloxide/bot_commands_parse_and_str
Make `BotCommands::parse` accept bot username as `&str`

Former-commit-id: 51e3cafe56
2022-10-06 15:44:52 +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
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
Maybe Waffle
a2a79e29cb adapt to teloxide changes 2022-10-05 09:58:25 +04:00
Hirrolot
3d3e3eb310
Merge pull request #34 from teloxide/rename_rename
Proper rename functionality
2022-10-05 10:08:27 +06: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
Hirrolot
c5585eed14 Enhance the v0.11 migration guide
Former-commit-id: c4dbff1afe
2022-10-04 09:56:51 +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
Maybe Waffle
3efa74c8f2 Start writing migration guide
Former-commit-id: 80a5865752
2022-10-03 21:10:32 +04:00
Maybe Waffle
7beb705b4a Update changelog 2022-10-03 20:54:05 +04:00
Maybe Waffle
f3bb54d670 Add #[command(rename = "blah")] 2022-10-03 20:50:18 +04:00
Maybe Waffle
ff08854ca9 Refactor attributes AGAIN 2022-10-03 20:50:18 +04:00
Maybe Waffle
26eba3eb14 Rename rename => rename_rule 2022-10-03 20:50:18 +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
Waffle Maybe
53d7548815
Merge pull request #31 from teloxide/actual-tests
Actually tests that macros work
2022-10-03 18:32:41 +04:00
Hirrolot
bd4b74a297
Fix a typo in tests/command.rs 2022-10-03 20:28:57 +06: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
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