pub struct TelegramContextData {
pub update: Update,
/* private fields */
}Expand description
Telegram context data - implements ContextData for platform abstraction
Fields§
§update: UpdateImplementations§
Source§impl TelegramContextData
impl TelegramContextData
Trait Implementations§
Source§impl ContextData for TelegramContextData
impl ContextData for TelegramContextData
fn channel_id(&self) -> &str
fn user_id(&self) -> &str
fn user_name(&self) -> &str
fn command_name(&self) -> Option<&str>
fn command_args(&self) -> Option<&str>
fn option(&self, _name: &str) -> Option<OptionValue>
fn message_content(&self) -> Option<&str>
fn as_any(&self) -> &dyn Any
Source§fn action_sender(&self) -> Option<AnyChatActionSender>
fn action_sender(&self) -> Option<AnyChatActionSender>
Create a chat action sender for the current channel Read more
Auto Trait Implementations§
impl Freeze for TelegramContextData
impl RefUnwindSafe for TelegramContextData
impl Send for TelegramContextData
impl Sync for TelegramContextData
impl Unpin for TelegramContextData
impl UnsafeUnpin for TelegramContextData
impl UnwindSafe for TelegramContextData
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