Struct tgbot::types::SetChatMenuButton
source · pub struct SetChatMenuButton { /* private fields */ }
Expand description
Changes a button of a menu of a bot in a private chat, or a default menu button.
Implementations§
source§impl SetChatMenuButton
impl SetChatMenuButton
sourcepub fn chat_id(self, chat_id: Integer) -> Self
pub fn chat_id(self, chat_id: Integer) -> Self
Sets a new chat ID.
§Arguments
value
- Unique identifier of the target private chat.
If not specified, default bot menu button will be changed.
Sets a new menu button.
§Arguments
value
- An object for the new bot menu button; default -MenuButton::Default
.
Trait Implementations§
source§impl Clone for SetChatMenuButton
impl Clone for SetChatMenuButton
source§fn clone(&self) -> SetChatMenuButton
fn clone(&self) -> SetChatMenuButton
Returns a copy 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 Debug for SetChatMenuButton
impl Debug for SetChatMenuButton
source§impl Default for SetChatMenuButton
impl Default for SetChatMenuButton
source§fn default() -> SetChatMenuButton
fn default() -> SetChatMenuButton
Returns the “default value” for a type. Read more
source§impl Method for SetChatMenuButton
impl Method for SetChatMenuButton
Auto Trait Implementations§
impl Freeze for SetChatMenuButton
impl RefUnwindSafe for SetChatMenuButton
impl Send for SetChatMenuButton
impl Sync for SetChatMenuButton
impl Unpin for SetChatMenuButton
impl UnwindSafe for SetChatMenuButton
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