mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
Rename BotCommand
-> BotCommands
This commit is contained in:
parent
32205527a7
commit
f0fffa7125
1 changed files with 2 additions and 2 deletions
|
@ -206,7 +206,7 @@ macro_rules! get_or_return {
|
|||
}
|
||||
}
|
||||
|
||||
#[proc_macro_derive(BotCommand, attributes(command))]
|
||||
#[proc_macro_derive(BotCommands, attributes(command))]
|
||||
pub fn derive_telegram_command_enum(tokens: TokenStream) -> TokenStream {
|
||||
let input = parse_macro_input!(tokens as DeriveInput);
|
||||
|
||||
|
@ -270,7 +270,7 @@ pub fn derive_telegram_command_enum(tokens: TokenStream) -> TokenStream {
|
|||
let fn_commands = impl_commands(&variant_infos, &command_enum);
|
||||
|
||||
let trait_impl = quote! {
|
||||
impl BotCommand for #ident {
|
||||
impl BotCommands for #ident {
|
||||
#fn_descriptions
|
||||
#fn_parse
|
||||
#fn_commands
|
||||
|
|
Loading…
Reference in a new issue