TelegramBot.editMessageText

Edit text of a message

Overloads take either chat_id and message_id or inline_message_id

  1. Message editMessageText(T chat_id, int message_id, string text)
    struct TelegramBot
    @trusted
    editMessageText
    (
    T
    )
    (,,
    string text
    )
  2. Message editMessageText(string inline_message_id, string text)
  3. Message editMessageText(EditMessageTextMethod m)

Parameters

chat_id T

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

message_id int

Identifier of the sent message

text string

New text of the message

Return Value

Type: Message

Edited Message

Throws

TelegramBotException on errors

See Also

Meta