TelegramPHP Documentation

PreCheckoutQueryBehaviour

Confirming a checkout. Telegram gives the bot ten seconds to answer, and abandons the payment if nothing comes back.

Tags
author

Valithor Obsidion valithor@valgorithms.com

Table of Contents

Methods

answer()  : PromiseInterface<string|int, bool>
Confirms the order, or explains to the buyer why it cannot go through.

Methods

answer()

Confirms the order, or explains to the buyer why it cannot go through.

public answer([bool $ok = true ][, ?string $errorMessage = null ]) : PromiseInterface<string|int, bool>
Parameters
$ok : bool = true
$errorMessage : ?string = null
Return values
PromiseInterface<string|int, bool>
On this page

Search results