[][src]Struct tgbot::methods::EditMessageText

pub struct EditMessageText { /* fields omitted */ }

Edit text and game messages sent by the bot or via the bot (for inline bots)

Methods

impl EditMessageText[src]

pub fn new<C: Into<ChatId>, S: Into<String>>(
    chat_id: C,
    message_id: Integer,
    text: S
) -> Self
[src]

Creates a new EditMessageText

Arguments

  • chat_id - Unique identifier for the target chat
  • message_id - Identifier of the sent message
  • text - New text of the message

pub fn with_inline_message_id<S: Into<String>>(
    inline_message_id: S,
    text: S
) -> Self
[src]

Creates a new EditMessageText

Arguments

  • inline_message_id - Identifier of the inline message
  • text - New text of the message

pub fn parse_mode(self, parse_mode: ParseMode) -> Self[src]

Parse mode

pub fn disable_web_page_preview(self, disable_web_page_preview: bool) -> Self[src]

Disables link previews for links in this message

pub fn reply_markup<I: Into<InlineKeyboardMarkup>>(
    self,
    reply_markup: I
) -> Self
[src]

Inline keyboard

Trait Implementations

impl Clone for EditMessageText[src]

impl Debug for EditMessageText[src]

impl Method for EditMessageText[src]

type Response = EditMessageResult

Type of successful result in API response

impl Serialize for EditMessageText[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.