MaybeInaccessibleMessageUnion
in package
FinalYes
Structural resolver for the {@see MaybeInaccessibleMessage} union.
Telegram marks inaccessible messages with date = 0; all other payloads use
the full Message shape. This union cannot be rendered as a normal
discriminator match because the same date field is also real message data.
Table of Contents
Methods
- members() : array<int, MaybeInaccessibleMessage>>
- resolve() : MaybeInaccessibleMessage
Methods
members()
public
static members() : array<int, MaybeInaccessibleMessage>>
Return values
array<int, MaybeInaccessibleMessage>>resolve()
public
static resolve(array<string, mixed> $payload[, Bot|null $bot = null ]) : MaybeInaccessibleMessage
Parameters
- $payload : array<string, mixed>
- $bot : Bot|null = null