set_webhook return bool

This commit is contained in:
Alex Root Junior 2017-06-09 14:57:43 +03:00
parent 3cd468e3c4
commit cc6fbef8ea
2 changed files with 3 additions and 4 deletions

View file

@ -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}