telegram-bot-simple-0.5.2: Easy to use library for building Telegram bots.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.Passport

Synopsis

Methods

setPassportDataErrors

type SetPassportDataErrors = "setPassportDataErrors" :> (RequiredQueryParam "user_id" UserId :> (RequiredQueryParam "errors" [PassportElementError] :> Get '[JSON] (Response Bool))) Source #

setPassportDataErrors :: UserId -> [PassportElementError] -> ClientM (Response Bool) Source #

Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.