Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Chat = Chat {
- chatId :: ChatId
- chatType :: ChatType
- chatTitle :: Maybe Text
- chatUsername :: Maybe Text
- chatFirstName :: Maybe Text
- chatLastName :: Maybe Text
- chatIsForum :: Maybe Bool
- chatPhoto :: Maybe ChatPhoto
- chatActiveUsernames :: Maybe Text
- chatEmojiStatusCustomEmojiId :: Maybe Text
- chatBio :: Maybe Text
- chatHasPrivateForwards :: Maybe Bool
- chatHasRestrictedVoiceAndVideoMessages :: Maybe Bool
- chatJoinToSendMessages :: Maybe Bool
- chatJoinByRequest :: Maybe Bool
- chatDescription :: Maybe Text
- chatInviteLink :: Maybe Text
- chatPinnedMessage :: Maybe Message
- chatPermissions :: Maybe ChatPermissions
- chatSlowModeDelay :: Maybe Int
- chatMessageAutoDeleteTime :: Maybe POSIXTime
- chatHasProtectedContent :: Maybe Bool
- chatStickerSetName :: Maybe Text
- chatCanSetStickerSet :: Maybe Bool
- chatLinkedChatId :: Maybe ChatId
- chatLocation :: Maybe ChatLocation
- data ChatType
Chat
This object represents a chat.
Chat | |
|
Instances
Type of chat.
Instances
Show ChatType Source # | |
Generic ChatType Source # | |
FromJSON ChatType Source # | |
Defined in Telegram.Bot.API.Types.Chat parseJSON :: Value -> Parser ChatType parseJSONList :: Value -> Parser [ChatType] | |
ToJSON ChatType Source # | |
Defined in Telegram.Bot.API.Types.Chat toEncoding :: ChatType -> Encoding toJSONList :: [ChatType] -> Value toEncodingList :: [ChatType] -> Encoding | |
type Rep ChatType Source # | |
Defined in Telegram.Bot.API.Types.Chat type Rep ChatType = D1 ('MetaData "ChatType" "Telegram.Bot.API.Types.Chat" "telegram-bot-api-6.5-inplace" 'False) ((C1 ('MetaCons "ChatTypePrivate" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatTypeGroup" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ChatTypeSupergroup" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatTypeChannel" 'PrefixI 'False) (U1 :: Type -> Type))) |