TelegramPHP Documentation

ShippingQueryBehaviour

Quoting delivery for an order that asked for a shipping address.

Tags
author

Valithor Obsidion valithor@valgorithms.com

Table of Contents

Methods

answer()  : PromiseInterface<string|int, bool>
Offers shipping options, or explains why delivery is not possible.

Methods

answer()

Offers shipping options, or explains why delivery is not possible.

public answer([bool $ok = true ][, array<int, array<string, mixed>|JsonSerializable>|null $options = null ][, ?string $errorMessage = null ]) : PromiseInterface<string|int, bool>
Parameters
$ok : bool = true
$options : array<int, array<string, mixed>|JsonSerializable>|null = null

Shipping options, when accepting.

$errorMessage : ?string = null
Return values
PromiseInterface<string|int, bool>
On this page

Search results