TelegramBot.deleteMessage

Delete a message

  1. bool deleteMessage(T chat_id, int message_id)
    struct TelegramBot
    @trusted
    bool
    deleteMessage
    (
    T
    )
  2. bool deleteMessage(DeleteMessageMethod 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 message to delete

Return Value

Type: bool

true on success

Throws

TelegramBotException on errors

See Also

Meta