ChatActionBar

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

Describes actions which should be possible to do through a chat action bar

  • The chat can be reported as spam using the method reportChat with the reason chatReportReasonSpam

    Declaration

    Swift

    case reportSpam
  • The chat is a location-based supergroup, which can be reported as having unrelated location using the method reportChat with the reason chatReportReasonUnrelatedLocation

    Declaration

    Swift

    case reportUnrelatedLocation
  • The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be added to the contact list using the method addContact, or the other user can be blocked using the method blockUser

    Declaration

    Swift

    case reportAddBlock
  • The chat is a private or secret chat and the other user can be added to the contact list using the method addContact

    Declaration

    Swift

    case addContact
  • The chat is a private or secret chat with a mutual contact and the user’s phone number can be shared with the other user using the method sharePhoneNumber

    Declaration

    Swift

    case sharePhoneNumber