Hirrolot
ee07a6f0b2
Update to the latest teloxide-macros
...
Former-commit-id: 64359db3da
2022-10-06 22:35:32 +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
4c4797d85e
update teloxide-macros
...
Former-commit-id: 44e134c47e
2022-08-28 15:19:38 +04:00
Hirrolot
ad87f6e63c
Test teloxide-macros with a parse_with
bug fix
...
Former-commit-id: 78afa99b79
2022-07-19 21:47:09 +06:00
Hirrolot
74b246a988
Test the rename
attribute
...
Former-commit-id: 4494acda88
2022-05-26 23:48:43 +06:00
Maybe Waffle
6922128cb6
Fix some places with remaining BotCommand
(w/o s
)
2022-03-27 22:11:17 +04:00
Maybe Waffle
86cc3d782f
Add CommandDescription[s]
...
Add two new types - `CommandDescription` and `CommandDescriptions`, make
`BotCommands` return the latter.
2022-03-27 22:10:50 +04:00
Maybe Waffle
b3b8073a12
Rename BotCommand
-> BotCommands
(the trait)
...
This removes the ambiguity with `types::BotCommand` and also the new
name just makes more sense, since this trait is usually implemented for
enums that can be many different commands and not a single one.
Note: this requires changes in the `teloxide-macro` crate.
2022-03-27 22:10:50 +04:00
Hirrolot
da74a78cc1
Test all command rename rules
2022-03-23 18:23:39 +06:00
Waffle
39e0ee094a
Ignore buggy nonstandard_macro_braces clippy lint
2021-07-04 00:22:11 +03:00
Temirkhan Myrzamadi
34a2eee1fa
Apply review suggestions
2021-03-15 09:22:32 +06:00
Temirkhan Myrzamadi
5f96da0a5f
Fix the tests
2021-03-13 23:05:50 +06:00
Jaslo Ziska
eed1bbb0fc
Conditionally add teloxide-macros crate and reexport macros
...
This commit adds the feature "macros" which conditionally adds the
teloxide-macros crate and reexports its macros.
All (doc) tests using these macros are also conditionally enabled now.
Also change examples accordingly.
This commit solves https://github.com/teloxide/teloxide/issues/283
2020-10-02 20:43:26 +02:00
Robin Hundt
abb7b9335e
Removed whitespace
2020-09-02 16:12:59 +02:00
Robin Hundt
e4449e49f3
Added failing test case for command with single non-String arg
2020-08-28 23:33:16 +02:00
Temirkhan Myrzamadi
38a1f470ad
Use the default characters per line limit
2020-07-26 23:47:02 +06:00
Temirkhan Myrzamadi
f90da598c5
Fix one Clippy's warning
2020-07-16 21:42:07 +06:00
p0lunin
030a349f60
fmt
2020-07-04 10:47:46 +03:00
p0lunin
58cb5ad152
added test for descriptions="off" attribute
2020-07-04 10:44:42 +03:00
p0lunin
9944524e34
added Box<dyn Error> in IncorrectFormat error
2020-06-24 19:18:12 +03:00
p0lunin
1e71268748
fmt
2020-06-06 21:32:51 +03:00
p0lunin
50b2b73f26
small fixes
2020-06-06 20:30:41 +03:00
p0lunin
1475b62e57
moved teloxide::utils::command::tests to tests/command.rs
2020-06-06 20:14:42 +03:00