danog\MadelineProto\EventHandler\Query\InlineGameQuery
Author: Daniil Gentili daniil@daniil.it
Represents a query sent by the user by clicking on a “Play game” button in an inline message.
Properties
$gameShortName:stringShort name of a Game to be returned, serves as the unique identifier for the game$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.$inlineMessageId:stringInline message ID
Method list:
answer(?string $message = NULL, bool $alert = false, (string|null) $url = NULL, int $cacheTime = 300): booleditText(string $message, (array|null) $replyMarkup = NULL, ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, bool $noWebpage = false): voideditReplyMarkup(array $replyMarkup): void
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 …)
editText(string $message, (array|null) $replyMarkup = NULL, ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, bool $noWebpage = false): void
Edit message text.
Parameters:
$message:stringNew message$replyMarkup:(array|null)Reply markup for inline keyboards$parseMode:ParseModeWhether to parse HTML or Markdown markup in the message$noWebpage:boolDisable webpage preview
See also:
ParseMode
editReplyMarkup(array $replyMarkup): void
Edit message keyboard.
Parameters:
$replyMarkup:arrayReply markup for inline keyboards
Generated by danog/phpdoc