@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * Traverses through our $data, yielding the result set |
31 | 31 | * |
32 | - * @return Update[] |
|
32 | + * @return \Generator |
|
33 | 33 | */ |
34 | 34 | public function traverseObject() |
35 | 35 | { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
68 | - * @param TelegramRawData $data |
|
68 | + * @param TelegramResponse $data |
|
69 | 69 | * @param LoggerInterface $logger |
70 | 70 | * @return TelegramTypes |
71 | 71 | * @throws InvalidResultType |
@@ -26,7 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * Traverses through our $data, yielding the result set |
28 | 28 | * |
29 | - * @return PhotoSize[] |
|
29 | + * @return \Generator |
|
30 | 30 | */ |
31 | 31 | public function traverseObject(): \Generator |
32 | 32 | { |
@@ -78,7 +78,7 @@ |
||
78 | 78 | /** |
79 | 79 | * Yields all local files (if present) |
80 | 80 | * |
81 | - * @return Generator|InputFile[] |
|
81 | + * @return Generator |
|
82 | 82 | */ |
83 | 83 | public function getLocalFiles(): Generator |
84 | 84 | { |
@@ -17,8 +17,8 @@ discard block |
||
17 | 17 | { |
18 | 18 | /** |
19 | 19 | * An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. |
20 | - * If the user refuses to provide authorization data, the original URL without information about the user will be opened. |
|
21 | - * The data added is the same as described in Receiving authorization data (https://core.telegram.org/widgets/login#receiving-authorization-data). |
|
20 | + * If the user refuses to provide authorization data, the original URL without information about the user will be opened. |
|
21 | + * The data added is the same as described in Receiving authorization data (https://core.telegram.org/widgets/login#receiving-authorization-data). |
|
22 | 22 | * @var string |
23 | 23 | */ |
24 | 24 | public $url = ''; |
@@ -35,9 +35,9 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public $bot_username = ''; |
37 | 37 | |
38 | - /** |
|
39 | - * Optional. Pass True to request the permission for your bot to send messages to the user. |
|
40 | - * @var bool |
|
41 | - */ |
|
38 | + /** |
|
39 | + * Optional. Pass True to request the permission for your bot to send messages to the user. |
|
40 | + * @var bool |
|
41 | + */ |
|
42 | 42 | public $request_write_access = false; |
43 | 43 | } |
@@ -32,11 +32,11 @@ |
||
32 | 32 | */ |
33 | 33 | public $url = ''; |
34 | 34 | |
35 | - /** |
|
36 | - * Optional. An HTTP URL used to automatically authorize the user. |
|
37 | - * @var LoginUrl |
|
38 | - */ |
|
39 | - public $login_url; |
|
35 | + /** |
|
36 | + * Optional. An HTTP URL used to automatically authorize the user. |
|
37 | + * @var LoginUrl |
|
38 | + */ |
|
39 | + public $login_url; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes |