haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.ChatMemberStatus

Synopsis

Documentation

data ChatMemberStatus Source #

Provides information about the status of a member in a chat

Constructors

ChatMemberStatusCreator

The user is the owner of the chat and has all the administrator privileges

Fields

  • custom_title :: Maybe Text

    A custom title of the owner; 0-16 characters without emoji; applicable to supergroups only

  • is_anonymous :: Maybe Bool

    True, if the creator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only

  • is_member :: Maybe Bool

    True, if the user is a member of the chat

ChatMemberStatusAdministrator

The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels, there are more detailed options for administrator privileges

Fields

ChatMemberStatusMember

The user is a member of the chat, without any additional privileges or restrictions

Fields

  • member_until_date :: Maybe Int

    Point in time (Unix timestamp) when the user will be removed from the chat because of the expired subscription; 0 if never. Ignored in setChatMemberStatus

ChatMemberStatusRestricted

The user is under certain restrictions in the chat. Not supported in basic groups and channels

Fields

  • is_member :: Maybe Bool

    True, if the user is a member of the chat

  • restricted_until_date :: Maybe Int

    Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever

  • permissions :: Maybe ChatPermissions

    User permissions in the chat

ChatMemberStatusLeft

The user or the chat is not a chat member

ChatMemberStatusBanned

The user or the chat was banned (and hence is not a member of the chat). Implies the user can't return to the chat, view messages, or be used as a participant identifier to join a video chat of the chat

Fields

  • banned_until_date :: Maybe Int

    Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Always 0 in basic groups