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.SetMyDefaultAdministratorRights

Synopsis

setMyDefaultAdministratorRights

data SetMyDefaultAdministratorRightsRequest Source #

Request parameters for setMyDefaultAdministratorRights.

Constructors

SetMyDefaultAdministratorRightsRequest 

Fields

Instances

Instances details
FromJSON SetMyDefaultAdministratorRightsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetMyDefaultAdministratorRights

ToJSON SetMyDefaultAdministratorRightsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetMyDefaultAdministratorRights

Generic SetMyDefaultAdministratorRightsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetMyDefaultAdministratorRights

type Rep SetMyDefaultAdministratorRightsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetMyDefaultAdministratorRights

type Rep SetMyDefaultAdministratorRightsRequest = D1 ('MetaData "SetMyDefaultAdministratorRightsRequest" "Telegram.Bot.API.Methods.SetMyDefaultAdministratorRights" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "SetMyDefaultAdministratorRightsRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "setMyDefaultAdministratorRightsRequestRights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatAdministratorRights)) :*: S1 ('MetaSel ('Just "setMyDefaultAdministratorRightsRequestForChannels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))

setMyDefaultAdministratorRights :: SetMyDefaultAdministratorRightsRequest -> ClientM (Response Bool) Source #

Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are are free to modify the list before adding the bot. Returns True on success.