EditMessageMedia

public struct EditMessageMedia : Codable, Equatable, TDFunction

Edits the content of a message with an animation, an audio, a document, a photo or a video. The media in the message can’t be replaced if the message was set to self-destruct. Media can’t be replaced by self-destructing media. Media in an album can be edited only to contain a photo or a video. Returns the edited message after the edit is completed on the server side

  • Undocumented

    Declaration

    Swift

    public typealias Result = Message
  • The chat the message belongs to

    Declaration

    Swift

    public let chatId: Int53
  • Identifier of the message

    Declaration

    Swift

    public let messageId: Int53
  • The new message reply markup; for bots only

    Declaration

    Swift

    public let replyMarkup: ReplyMarkup?
  • New content of the message. Must be one of the following types: InputMessageAnimation, InputMessageAudio, InputMessageDocument, InputMessagePhoto or InputMessageVideo

    Declaration

    Swift

    public let inputMessageContent: InputMessageContent
  • Edits the content of a message with an animation, an audio, a document, a photo or a video. The media in the message can’t be replaced if the message was set to self-destruct. Media can’t be replaced by self-destructing media. Media in an album can be edited only to contain a photo or a video. Returns the edited message after the edit is completed on the server side

    Declaration

    Swift

    public init(chatId: Int53, messageId: Int53, replyMarkup: ReplyMarkup?, inputMessageContent: InputMessageContent)

    Parameters

    chatId

    The chat the message belongs to

    messageId

    Identifier of the message

    replyMarkup

    The new message reply markup; for bots only

    inputMessageContent

    New content of the message. Must be one of the following types: InputMessageAnimation, InputMessageAudio, InputMessageDocument, InputMessagePhoto or InputMessageVideo