1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 17:24:40 +01:00

Merge pull request #1581 from mtalaeii/v8

Update CallbackQuery.php
This commit is contained in:
Daniil Gentili 2024-11-15 17:35:35 +01:00 committed by GitHub
commit 353dc0dfa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,13 +40,13 @@ abstract class CallbackQuery extends Update
}
/**
* @param string $message Popup to show
* @param ?string $message Popup to show
* @param bool $alert Whether to show the message as a popup instead of a toast notification
* @param string|null $url URL to open
* @param int $cacheTime Cache validity (default set to 5 min based on telegram official docs ...)
*/
public function answer(
string $message,
?string $message = null,
bool $alert = false,
?string $url = null,
int $cacheTime = 5 * 60