CallbackQueryAnswer

public struct CallbackQueryAnswer : Codable, Equatable, FunctionResult

Contains a bot’s answer to a callback query

  • Text of the answer

    Declaration

    Swift

    public let text: String
  • True, if an alert should be shown to the user instead of a toast notification

    Declaration

    Swift

    public let showAlert: Bool
  • url

    URL to be opened

    Declaration

    Swift

    public let url: String
  • Contains a bot’s answer to a callback query

    Declaration

    Swift

    public init(text: String, showAlert: Bool, url: String)

    Parameters

    text

    Text of the answer

    showAlert

    True, if an alert should be shown to the user instead of a toast notification

    url

    URL to be opened