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

Telegram.Bot.API.Types.ResponseParameters

Synopsis

ResponseParameters

data ResponseParameters Source #

Contains information about why a request was unsuccessful.

Constructors

ResponseParameters 

Fields

  • responseParametersMigrateToChatId :: Maybe ChatId

    The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

  • responseParametersRetryAfter :: Maybe Seconds

    In case of exceeding flood control, the number of seconds left to wait before the request can be repeated

Instances

Instances details
FromJSON ResponseParameters Source # 
Instance details

Defined in Telegram.Bot.API.Types.ResponseParameters

ToJSON ResponseParameters Source # 
Instance details

Defined in Telegram.Bot.API.Types.ResponseParameters

Generic ResponseParameters Source # 
Instance details

Defined in Telegram.Bot.API.Types.ResponseParameters

Associated Types

type Rep ResponseParameters :: Type -> Type #

Show ResponseParameters Source # 
Instance details

Defined in Telegram.Bot.API.Types.ResponseParameters

type Rep ResponseParameters Source # 
Instance details

Defined in Telegram.Bot.API.Types.ResponseParameters

type Rep ResponseParameters = D1 ('MetaData "ResponseParameters" "Telegram.Bot.API.Types.ResponseParameters" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "ResponseParameters" 'PrefixI 'True) (S1 ('MetaSel ('Just "responseParametersMigrateToChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatId)) :*: S1 ('MetaSel ('Just "responseParametersRetryAfter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seconds))))