Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
data ChatActionBar Source #
Describes actions which must be possible to do through a chat action bar
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 |
| |
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 |
| |
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 |
|
Instances
FromJSON ChatActionBar Source # | |
Defined in TD.Data.ChatActionBar parseJSON :: Value -> Parser ChatActionBar # parseJSONList :: Value -> Parser [ChatActionBar] # | |
Show ChatActionBar Source # | |
Defined in TD.Data.ChatActionBar showsPrec :: Int -> ChatActionBar -> ShowS # show :: ChatActionBar -> String # showList :: [ChatActionBar] -> ShowS # | |
Eq ChatActionBar Source # | |
Defined in TD.Data.ChatActionBar (==) :: ChatActionBar -> ChatActionBar -> Bool # (/=) :: ChatActionBar -> ChatActionBar -> Bool # | |
ShortShow ChatActionBar Source # | |
Defined in TD.Data.ChatActionBar shortShow :: ChatActionBar -> String Source # |