haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.ChatActionBar

Synopsis

Documentation

data ChatActionBar Source #

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

Constructors

ChatActionBarReportSpam

The chat can be reported as spam using the method reportChat with an empty option_id and message_ids. If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be shown

Fields

  • can_unarchive :: Maybe Bool

    If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings

ChatActionBarReportUnrelatedLocation

The chat is a location-based supergroup, which can't be reported anymore

ChatActionBarInviteMembers

The chat is a recently created group chat to which new members can be invited

ChatActionBarReportAddBlock

The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be blocked using the method setMessageSenderBlockList, or the other user can be added to the contact list using the method addContact. If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be shown

Fields

  • can_unarchive :: Maybe Bool

    If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings

  • distance :: Maybe Int

    If non-negative, the current user was found by the other user through searchChatsNearby and this is the distance between the users

ChatActionBarAddContact

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

ChatActionBarSharePhoneNumber

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

ChatActionBarJoinRequest

The chat is a private chat with an administrator of a chat to which the user sent join request

Fields