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

Telegram.Bot.API.Methods.SetChatPermissions

Synopsis

setChatPermissions

data SetChatPermissionsRequest Source #

Request parameters for setChatPermissions.

Constructors

SetChatPermissionsRequest 

Fields

Instances

Instances details
FromJSON SetChatPermissionsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetChatPermissions

ToJSON SetChatPermissionsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetChatPermissions

Generic SetChatPermissionsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetChatPermissions

Associated Types

type Rep SetChatPermissionsRequest :: Type -> Type #

type Rep SetChatPermissionsRequest Source # 
Instance details

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)))))

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.