phpbotgram

InaccessibleMessageShortcuts

Hand-authored shortcut helpers for `InaccessibleMessage`.

Loaded by HandAuthoredShortcutsIntegrator (Phase 2 codegen stage 8) and stitched into the regenerated InaccessibleMessage class via a use InaccessibleMessageShortcuts; directive. Provides the same asReplyParameters() helper as MessageShortcuts — both sides of the MaybeInaccessibleMessage union share the contract so the schema's reply_* aliases compile to the same self.as_reply_parameters() call regardless of which subtype the caller holds.

Table of Contents

Properties

$chat  : Chat
$messageId  : int

Methods

asReplyParameters()  : ReplyParameters
Build a `ReplyParameters` referencing this inaccessible-message stub.

Properties

Methods

asReplyParameters()

Build a `ReplyParameters` referencing this inaccessible-message stub.

public asReplyParameters([bool|BotDefault|null $allowSendingWithoutReply = new BotDefault('allow_sending_without_reply') ][, string|null $quote = null ][, BotDefault|string|null $quoteParseMode = new BotDefault('parse_mode') ][, null|array<int, MessageEntity$quoteEntities = null ][, int|null $quotePosition = null ]) : ReplyParameters

Mirrors aiogram's Message.as_reply_parameters(...). For a deleted / inaccessible message the runtime API still accepts a reply_parameters payload — the resulting send will fail server-side if the underlying message is truly unreachable, but the construction path stays uniform across Message and InaccessibleMessage.

Both allowSendingWithoutReply and quoteParseMode default to a BotDefault(...) sentinel that mirrors aiogram's Default(...). The sentinels pass through to ReplyParameters unchanged — deferred resolution happens at wire-encode time in BaseSession::prepareValue.

Parameters
$allowSendingWithoutReply : bool|BotDefault|null = new BotDefault('allow_sending_without_reply')
$quote : string|null = null
$quoteParseMode : BotDefault|string|null = new BotDefault('parse_mode')
$quoteEntities : null|array<int, MessageEntity> = null
$quotePosition : int|null = null
Return values
ReplyParameters
On this page

Search results