TelegramPHP Documentation

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.

Tags
link
https://core.telegram.org/bots/api#maybeinaccessiblemessage
author

Valithor Obsidion valithor@valgorithms.com

Table of Contents

Methods

resolveSubtype()  : Part>

Methods

resolveSubtype()

public static resolveSubtype(array<string, mixed> $attributes) : Part>
Parameters
$attributes : array<string, mixed>
Return values
Part>
On this page

Search results