Updated \TgBotLib > Bot > setWebhook()
This commit is contained in:
parent
de16477f8a
commit
998b7825d1
1 changed files with 3 additions and 1 deletions
|
@ -179,7 +179,9 @@
|
||||||
*/
|
*/
|
||||||
public function setWebhook(string $url, array $options=[]): bool
|
public function setWebhook(string $url, array $options=[]): bool
|
||||||
{
|
{
|
||||||
$this->sendRequest('setWebhook', $options);
|
$this->sendRequest('setWebhook', array_merge($options, [
|
||||||
|
'url' => $url
|
||||||
|
]));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue