danog\MadelineProto\EventHandler\Query\ButtonQuery
Author: Daniil Gentili daniil@daniil.it
Represents a query sent by the user by clicking on a button.
Properties
$data:stringData associated with the callback button. Be aware that a bad client can send arbitrary data in this field.$matches:list<string>Regex matches, if a filter regex is present.$matchesAll:array<array-key, (array<array-key, (list{string, int} | null | string)> | mixed)>Regex matches, if a filter multiple match regex is present$queryId:intQuery ID$userId:intID of the user that pressed the button$chatInstance:intGlobal identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
Method list:
Methods:
answer(?string $message = NULL, bool $alert = false, (string|null) $url = NULL, int $cacheTime = 300): bool
Parameters:
$message:?stringPopup to show$alert:boolWhether to show the message as a popup instead of a toast notification$url:(string|null)URL to open$cacheTime:intCache validity (default set to 5 min based on telegram official docs …)
Generated by danog/phpdoc