danog\MadelineProto\EventHandler\Query\ChatButtonQuery: Represents a query sent by the user by clicking on a button in a chat.
Author: Daniil Gentili daniil@daniil.it
Represents a query sent by the user by clicking on a button in a chat.
Properties
$chatId:intChat where the inline keyboard was sent$messageId:intMessage ID$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:
editText(string $message, (array|null) $replyMarkup = NULL, ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, bool $noWebpage = false, (int|null) $scheduleDate = NULL): \danog\MadelineProto\EventHandler\MessageeditRich((string|array|RichMessage) $message, (array|null) $replyMarkup = NULL, RichParseMode $parseMode = \danog\MadelineProto\RichParseMode::TEXT, (int|null) $scheduleDate = NULL, array $media = [], boolean $rtl = false, boolean $noAutolink = false): \danog\MadelineProto\EventHandler\MessageeditReplyMarkup(array $replyMarkup): \danog\MadelineProto\EventHandler\Messagedelete(boolean $revoke = true): voidpin(bool $pmOneside = false, bool $silent = false): voidunpin(bool $pmOneside = false, bool $silent = false): ?\danog\MadelineProto\EventHandler\Updatereport(ReportReason $reason, string $message): boolanswer(?string $message = NULL, bool $alert = false, (string|null) $url = NULL, int $cacheTime = 300): bool
Methods:
editText(string $message, (array|null) $replyMarkup = NULL, ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, bool $noWebpage = false, (int|null) $scheduleDate = NULL): \danog\MadelineProto\EventHandler\Message
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$scheduleDate:(int|null)Scheduled message date for scheduled messages
See also:
editRich((string|array|RichMessage) $message, (array|null) $replyMarkup = NULL, RichParseMode $parseMode = \danog\MadelineProto\RichParseMode::TEXT, (int|null) $scheduleDate = NULL, array $media = [], boolean $rtl = false, boolean $noAutolink = false): \danog\MadelineProto\EventHandler\Message
Edit the message, replacing it with a rich message.
Parameters:
$message:(string|array|RichMessage)Rich message: Markdown or HTML (depending on $parseMode), a list of blocks (Block objects or Bot API InputRichBlock arrays), a received RichMessage, or a Bot API InputRichMessage (see sendRichMessage)$replyMarkup:(array|null)Reply markup for inline keyboards$parseMode:RichParseModeHow to parse a string $message: plain text (the default) is sent as a single paragraph, Markdown and HTML are parsed by Telegram.$scheduleDate:(int|null)Scheduled message date for scheduled messages$media:arrayMedia referenced by Markdown or HTML messages, as a map from ID to file (see sendRichMessage).$rtl:booleanWhether the text is right-to-left$noAutolink:booleanWhether to skip the automatic detection of mentions, hashtags, URLs and so on
See also:
RichMessageRichParseMode\danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message.
editReplyMarkup(array $replyMarkup): \danog\MadelineProto\EventHandler\Message
Edit message keyboard.
Parameters:
$replyMarkup:arrayReply markup for inline keyboards
See also:
delete(boolean $revoke = true): void
Delete the message.
Parameters:
$revoke:booleanWhether to delete the message for all participants of the chat.
pin(bool $pmOneside = false, bool $silent = false): void
Pin a message.
Parameters:
$pmOneside:boolWhether the message should only be pinned on the local side of a one-to-one chat$silent:boolPin the message silently, without triggering a notification
unpin(bool $pmOneside = false, bool $silent = false): ?\danog\MadelineProto\EventHandler\Update
Unpin a message.
Parameters:
$pmOneside:boolWhether the message should only be pinned on the local side of a one-to-one chat$silent:boolPin the message silently, without triggering a notification
See also:
report(ReportReason $reason, string $message): bool
Report a message in a chat for violation of telegram’s Terms of Service.
Parameters:
$reason:ReportReasonWhy are these messages being reported$message:stringComment for report moderation
See also:
ReportReason
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