1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 00:14:38 +01:00

Compare commits

..

5 Commits

Author SHA1 Message Date
9397379e8f
Merge 1efb43cbde into c337762698 2024-11-18 16:30:54 +07:00
c337762698 Bump to 8.3.6 2024-11-15 18:17:12 +00:00
353dc0dfa7
Merge pull request #1581 from mtalaeii/v8
Update CallbackQuery.php
2024-11-15 17:35:35 +01:00
Mahdi
5dc97c91cd Small refactor 2024-11-15 18:39:13 +03:30
Mahdi
7996b20889 Update CallbackQuery.php
- as we can provide url with empty message so $message parameter can be nullable here and can accept null too!
2024-11-15 18:34:25 +03:30
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ final class API extends AbstractAPI
* *
* @var string * @var string
*/ */
public const RELEASE = '8.3.5'; public const RELEASE = '8.3.6';
/** /**
* We're not logged in. * We're not logged in.
* *

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 bool $alert Whether to show the message as a popup instead of a toast notification
* @param string|null $url URL to open * @param string|null $url URL to open
* @param int $cacheTime Cache validity (default set to 5 min based on telegram official docs ...) * @param int $cacheTime Cache validity (default set to 5 min based on telegram official docs ...)
*/ */
public function answer( public function answer(
string $message, ?string $message = null,
bool $alert = false, bool $alert = false,
?string $url = null, ?string $url = null,
int $cacheTime = 5 * 60 int $cacheTime = 5 * 60