phpbotgram

UpdateShortcuts

Hand-authored shortcut helpers for `Update`.

Loaded by HandAuthoredShortcutsIntegrator (Phase 2 codegen stage 8) and stitched into the regenerated Update class via a use UpdateShortcuts; directive.

Mirrors aiogram's Update.event_type accessor — the dispatcher uses it to route a single update to the right handler chain without walking every optional slot manually.

The match arms below mirror the schema's optional-field declaration order so the first non-null field's wire name wins. In a real Telegram payload exactly one of these fields is populated, so the ordering is purely defensive against tests / synthetic payloads.

Table of Contents

Properties

$businessConnection  : null|BusinessConnection
$businessMessage  : null|Message
$callbackQuery  : null|CallbackQuery
$channelPost  : null|Message
$chatBoost  : null|ChatBoostUpdated
$chatJoinRequest  : null|ChatJoinRequest
$chatMember  : null|ChatMemberUpdated
$chosenInlineResult  : null|ChosenInlineResult
$deletedBusinessMessages  : null|BusinessMessagesDeleted
$editedBusinessMessage  : null|Message
$editedChannelPost  : null|Message
$editedMessage  : null|Message
$guestMessage  : null|Message
$inlineQuery  : null|InlineQuery
$managedBot  : null|ManagedBotUpdated
$message  : null|Message
$messageReaction  : null|MessageReactionUpdated
$messageReactionCount  : null|MessageReactionCountUpdated
$myChatMember  : null|ChatMemberUpdated
$poll  : null|Poll
$pollAnswer  : null|PollAnswer
$preCheckoutQuery  : null|PreCheckoutQuery
$purchasedPaidMedia  : null|PaidMediaPurchased
$removedChatBoost  : null|ChatBoostRemoved
$shippingQuery  : null|ShippingQuery

Methods

eventType()  : string|null

Properties

Methods

eventType()

public eventType() : string|null
Return values
string|null
On this page

Search results