pub enum MessagingCommands {
SendText {
chat_id: String,
message: String,
},
SendFile {
chat_id: String,
file_path: String,
},
SendVoice {
chat_id: String,
file_path: String,
},
EditMessage {
chat_id: String,
message_id: String,
new_text: String,
},
DeleteMessage {
chat_id: String,
message_id: String,
},
PinMessage {
chat_id: String,
message_id: String,
},
UnpinMessage {
chat_id: String,
message_id: String,
},
}Expand description
All messaging-related commands
Variants§
SendText
Send text message to user or chat
SendFile
Send file to user or chat
SendVoice
Send voice message to user or chat
EditMessage
Edit existing message
DeleteMessage
Delete message from chat
PinMessage
Pin message in chat
UnpinMessage
Unpin message from chat
Trait Implementations§
Source§impl Clone for MessagingCommands
impl Clone for MessagingCommands
Source§fn clone(&self) -> MessagingCommands
fn clone(&self) -> MessagingCommands
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for MessagingCommands
impl Command for MessagingCommands
Source§fn execute_with_output<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
bot: &'life1 Bot,
output_format: &'life2 OutputFormat,
) -> Pin<Box<dyn Future<Output = CliResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute_with_output<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
bot: &'life1 Bot,
output_format: &'life2 OutputFormat,
) -> Pin<Box<dyn Future<Output = CliResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
New method for structured output support
Source§impl Debug for MessagingCommands
impl Debug for MessagingCommands
Source§impl FromArgMatches for MessagingCommands
impl FromArgMatches for MessagingCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for MessagingCommands
impl Subcommand for MessagingCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for MessagingCommands
impl RefUnwindSafe for MessagingCommands
impl Send for MessagingCommands
impl Sync for MessagingCommands
impl Unpin for MessagingCommands
impl UnwindSafe for MessagingCommands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request