1 | <?php |
||
35 | class SetWebhook extends TelegramMethods |
||
36 | { |
||
37 | /** |
||
38 | * Optional. HTTPS url to send updates to. Use an empty string to remove webhook integration |
||
39 | * @var string |
||
40 | */ |
||
41 | public $url; |
||
42 | |||
43 | /** |
||
44 | * Optional. Upload your public key certificate so that the root certificate in use can be checked. See our |
||
45 | * self-signed guide for details. |
||
46 | * @see https://core.telegram.org/bots/self-signed |
||
47 | * @var InputFile |
||
48 | */ |
||
49 | public $certificate; |
||
50 | |||
51 | /** |
||
52 | * Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to |
||
53 | * 40. Use lower values to limit the load on your bot‘s server, and higher values to increase your bot’s |
||
54 | * throughput |
||
55 | * @var int |
||
56 | */ |
||
57 | public $max_connections = 40; |
||
58 | |||
59 | /** |
||
60 | * List the types of updates you want your bot to receive. For example, specify |
||
61 | * [“message”, “edited_channel_post”, “callback_query”] |
||
62 | * to only receive updates of these types. See Update for a complete list of available update types. Specify an |
||
63 | * empty list to receive all updates regardless of type (default). If not specified, the previous setting will be |
||
64 | * used. |
||
65 | * |
||
66 | * Please note that this parameter doesn't affect updates created before the call to the setWebhook, so unwanted |
||
67 | * updates may be received for a short period of time. |
||
68 | * @see Update |
||
69 | * @var string[] |
||
70 | */ |
||
71 | public $allowed_updates = []; |
||
72 | |||
73 | 2 | public static function bindToObject(TelegramResponse $data, LoggerInterface $logger): TelegramTypes |
|
77 | |||
78 | 3 | public function getMandatoryFields(): array |
|
84 | |||
85 | 3 | public function hasLocalFiles(): bool |
|
89 | |||
90 | public function getLocalFiles(): Generator |
||
94 | } |
||
95 |