mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +00:00
set_webhook return bool
This commit is contained in:
parent
3cd468e3c4
commit
cc6fbef8ea
2 changed files with 3 additions and 4 deletions
|
|
@ -145,7 +145,7 @@ class BaseBot:
|
|||
payload = generate_payload(**locals())
|
||||
return await self.request(api.Methods.GET_UPDATES, payload)
|
||||
|
||||
async def set_webhook(self, url, certificate=None, max_connections=None, allowed_updates=None) -> dict:
|
||||
async def set_webhook(self, url, certificate=None, max_connections=None, allowed_updates=None) -> bool:
|
||||
payload = generate_payload(**locals(), exclude=['certificate'])
|
||||
if certificate:
|
||||
cert = {'certificate': certificate}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue