phpbotgram

InlineQueryResultUnion
in package

FinalYes

Discriminator resolver for the {@see InlineQueryResult} union.

Wire discriminator: type.

NOTE: this union's children share wire discriminator values — two or more subtypes declare the same type literal, so a match($payload['type']) resolver would silently dispatch every ambiguous payload to whichever subtype was registered first in declaration order. The resolve() helper is intentionally omitted; callers must dispatch via instanceof against the members() listing or by inspecting payload-content keys that uniquely distinguish the variants.

Table of Contents

Methods

members()  : array<int, InlineQueryResult>>

Methods

members()

public static members() : array<int, InlineQueryResult>>
Return values
array<int, InlineQueryResult>>
On this page

Search results