ReplyMarkup

public indirect enum ReplyMarkup : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum

Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots

  • Instructs clients to remove the keyboard once this message has been received. This kind of keyboard can’t be received in an incoming message; instead, UpdateChatReplyMarkup with message_id == 0 will be sent

    • isPersonal: True, if the keyboard is removed only for the mentioned users or the target user of a reply

    Declaration

    Swift

    case removeKeyboard(isPersonal: Bool)
  • Instructs clients to force a reply to this message

    • isPersonal: True, if a forced reply must automatically be shown to the current user. For outgoing messages, specify true to show the forced reply only for the mentioned users and for the target user of a reply

    Declaration

    Swift

    case forceReply(isPersonal: Bool)
  • Contains a custom keyboard layout to quickly reply to bots

    • rows: A list of rows of bot keyboard buttons
    • resizeKeyboard: True, if the client needs to resize the keyboard vertically
    • oneTime: True, if the client needs to hide the keyboard after use
    • isPersonal: True, if the keyboard must automatically be shown to the current user. For outgoing messages, specify true to show the keyboard only for the mentioned users and for the target user of a reply

    Declaration

    Swift

    case showKeyboard(rows: [[KeyboardButton]], resizeKeyboard: Bool, oneTime: Bool, isPersonal: Bool)
  • Contains an inline keyboard layout

    • rows: A list of rows of inline keyboard buttons

    Declaration

    Swift

    case inlineKeyboard(rows: [[InlineKeyboardButton]])