Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SetChatPermissionsRequest = SetChatPermissionsRequest {}
- type SetChatPermissions = "setChatPermissions" :> (ReqBody '[JSON] SetChatPermissionsRequest :> Post '[JSON] (Response Bool))
- setChatPermissions :: SetChatPermissionsRequest -> ClientM (Response Bool)
setChatPermissions
data SetChatPermissionsRequest Source #
Request parameters for setChatPermissions
.
SetChatPermissionsRequest | |
|
Instances
FromJSON SetChatPermissionsRequest Source # | |
ToJSON SetChatPermissionsRequest Source # | |
Generic SetChatPermissionsRequest Source # | |
Defined in Telegram.Bot.API.Methods.SetChatPermissions type Rep SetChatPermissionsRequest :: Type -> Type # | |
type Rep SetChatPermissionsRequest Source # | |
Defined in Telegram.Bot.API.Methods.SetChatPermissions type Rep SetChatPermissionsRequest = D1 ('MetaData "SetChatPermissionsRequest" "Telegram.Bot.API.Methods.SetChatPermissions" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "SetChatPermissionsRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "setChatPermissionsChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: (S1 ('MetaSel ('Just "setChatPermissionsPermissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatPermissions) :*: S1 ('MetaSel ('Just "setChatPermissionsUseIndependentChatPermissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) |
type SetChatPermissions = "setChatPermissions" :> (ReqBody '[JSON] SetChatPermissionsRequest :> Post '[JSON] (Response Bool)) Source #
setChatPermissions :: SetChatPermissionsRequest -> ClientM (Response Bool) Source #
Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members administrator rights. Returns True on success.