TelegramPHP Documentation

Concerns

Table of Contents

Traits

CallbackQueryBehaviour
Answering a button press.
ChatBehaviour
What you can do to a chat you are holding.
ChatFullInfoBehaviour
The full chat record does everything the stub does - `getChat` hands back a {@see \Telegram\Parts\ChatFullInfo}, and it would be odd if that could do less than the {@see \Telegram\Parts\Chat} an update arrived with.
ChatJoinRequestBehaviour
Approving or declining a request to join a chat.
FileBehaviour
Getting the bytes behind a {@see \Telegram\Parts\File}.
InlineQueryBehaviour
Answering an inline query.
MaybeInaccessibleMessageBehaviour
`MaybeInaccessibleMessage` is the one union Telegram tags with a value rather than a type: a `date` of 0 means the message is inaccessible to the bot, and anything else is an ordinary message. Attribute shape cannot tell the two apart - an inaccessible message carries a subset of a real one's fields - so the generated resolver is replaced with the documented rule.
MessageBehaviour
What you can do to a message you are holding.
PreCheckoutQueryBehaviour
Confirming a checkout. Telegram gives the bot ten seconds to answer, and abandons the payment if nothing comes back.
ShippingQueryBehaviour
Quoting delivery for an order that asked for a shipping address.
UserBehaviour
Conveniences for a user part: how to name them, and how to write to them.
On this page

Search results