TelegramPHP Documentation

MaybeInaccessibleMessageBehaviour.php

Table of Contents

Traits

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.
On this page

Search results