Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 13fcd84

Browse files
committed
New field cache_time on AnswerCallbackQuery
1 parent 99ec6b1 commit 13fcd84

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Telegram/Methods/AnswerCallbackQuery.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ class AnswerCallbackQuery extends TelegramMethods
5050
*/
5151
public $url = '';
5252

53+
/**
54+
* Optional. The maximum amount of time in seconds that the result of the callback query may be cached client-side.
55+
* Telegram apps will support caching starting in version 3.14. Defaults to 0.
56+
* @var int
57+
*/
58+
public $cache_time = 0;
59+
5360
public static function bindToObject(TelegramRawData $data, LoggerInterface $logger): TelegramTypes
5461
{
5562
return new ResultBoolean($data->getResultBoolean(), $logger);

0 commit comments

Comments
 (0)