telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.Types.ChatPermissions

Synopsis

ChatPermissions

data ChatPermissions Source #

Describes actions that a non-administrator user is allowed to take in a chat.

Constructors

ChatPermissions 

Fields

Instances

Instances details
Show ChatPermissions Source # 
Instance details

Defined in Telegram.Bot.API.Types.ChatPermissions

Generic ChatPermissions Source # 
Instance details

Defined in Telegram.Bot.API.Types.ChatPermissions

Associated Types

type Rep ChatPermissions :: Type -> Type #

FromJSON ChatPermissions Source # 
Instance details

Defined in Telegram.Bot.API.Types.ChatPermissions

Methods

parseJSON :: Value -> Parser ChatPermissions

parseJSONList :: Value -> Parser [ChatPermissions]

ToJSON ChatPermissions Source # 
Instance details

Defined in Telegram.Bot.API.Types.ChatPermissions

Methods

toJSON :: ChatPermissions -> Value

toEncoding :: ChatPermissions -> Encoding

toJSONList :: [ChatPermissions] -> Value

toEncodingList :: [ChatPermissions] -> Encoding

type Rep ChatPermissions Source # 
Instance details

Defined in Telegram.Bot.API.Types.ChatPermissions

type Rep ChatPermissions = D1 ('MetaData "ChatPermissions" "Telegram.Bot.API.Types.ChatPermissions" "telegram-bot-api-6.5-inplace" 'False) (C1 ('MetaCons "ChatPermissions" 'PrefixI 'True) (((S1 ('MetaSel ('Just "chatPermissionsCanSendMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "chatPermissionsCanSendAudios") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatPermissionsCanSendDocuments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "chatPermissionsCanSendPhotos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatPermissionsCanSendVideos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "chatPermissionsCanSendVideoNotes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatPermissionsCanSendVoiceNotes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "chatPermissionsCanSendPolls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "chatPermissionsCanSendOtherMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatPermissionsCanAddWebPagePreviews") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "chatPermissionsCanChangeInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatPermissionsCanInviteUsers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "chatPermissionsCanPinMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatPermissionsCanManageTopics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))))