Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data GetMyDefaultAdministratorRightsRequest = GetMyDefaultAdministratorRightsRequest {}
- type GetMyDefaultAdministratorRights = "getMyDefaultAdministratorRights" :> (ReqBody '[JSON] GetMyDefaultAdministratorRightsRequest :> Post '[JSON] (Response ChatAdministratorRights))
- getMyDefaultAdministratorRights :: GetMyDefaultAdministratorRightsRequest -> ClientM (Response ChatAdministratorRights)
getMyDefaultAdministratorRights
data GetMyDefaultAdministratorRightsRequest Source #
Request parameters for getMyDefaultAdministratorRights
.
GetMyDefaultAdministratorRightsRequest | |
|
Instances
FromJSON GetMyDefaultAdministratorRightsRequest Source # | |
ToJSON GetMyDefaultAdministratorRightsRequest Source # | |
Generic GetMyDefaultAdministratorRightsRequest Source # | |
Defined in Telegram.Bot.API.Methods.GetMyDefaultAdministratorRights type Rep GetMyDefaultAdministratorRightsRequest :: Type -> Type # | |
type Rep GetMyDefaultAdministratorRightsRequest Source # | |
Defined in Telegram.Bot.API.Methods.GetMyDefaultAdministratorRights type Rep GetMyDefaultAdministratorRightsRequest = D1 ('MetaData "GetMyDefaultAdministratorRightsRequest" "Telegram.Bot.API.Methods.GetMyDefaultAdministratorRights" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "GetMyDefaultAdministratorRightsRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "getMyDefaultAdministratorRightsRequestForChannels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) |
type GetMyDefaultAdministratorRights = "getMyDefaultAdministratorRights" :> (ReqBody '[JSON] GetMyDefaultAdministratorRightsRequest :> Post '[JSON] (Response ChatAdministratorRights)) Source #
getMyDefaultAdministratorRights :: GetMyDefaultAdministratorRightsRequest -> ClientM (Response ChatAdministratorRights) Source #
Use this method to get the current default administrator rights of the bot.
Returns ChatAdministratorRights
on success.