Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
Documentation
data ChatMemberStatus Source #
Provides information about the status of a member in a chat
ChatMemberStatusCreator | The user is the owner of the chat and has all the administrator privileges |
| |
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 |
| |
ChatMemberStatusMember | The user is a member of the chat, without any additional privileges or restrictions |
| |
ChatMemberStatusRestricted | The user is under certain restrictions in the chat. Not supported in basic groups and channels |
| |
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 |
|
Instances
FromJSON ChatMemberStatus Source # | |
Defined in TD.Data.ChatMemberStatus parseJSON :: Value -> Parser ChatMemberStatus # parseJSONList :: Value -> Parser [ChatMemberStatus] # | |
ToJSON ChatMemberStatus Source # | |
Defined in TD.Data.ChatMemberStatus toJSON :: ChatMemberStatus -> Value # toEncoding :: ChatMemberStatus -> Encoding # toJSONList :: [ChatMemberStatus] -> Value # toEncodingList :: [ChatMemberStatus] -> Encoding # | |
Show ChatMemberStatus Source # | |
Defined in TD.Data.ChatMemberStatus showsPrec :: Int -> ChatMemberStatus -> ShowS # show :: ChatMemberStatus -> String # showList :: [ChatMemberStatus] -> ShowS # | |
Eq ChatMemberStatus Source # | |
Defined in TD.Data.ChatMemberStatus (==) :: ChatMemberStatus -> ChatMemberStatus -> Bool # (/=) :: ChatMemberStatus -> ChatMemberStatus -> Bool # | |
ShortShow ChatMemberStatus Source # | |
Defined in TD.Data.ChatMemberStatus shortShow :: ChatMemberStatus -> String Source # |