mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Exclude must be a list
This commit is contained in:
parent
a8f4f76cd4
commit
3cd468e3c4
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ class BaseBot:
|
|||
return await self.request(api.Methods.GET_UPDATES, payload)
|
||||
|
||||
async def set_webhook(self, url, certificate=None, max_connections=None, allowed_updates=None) -> dict:
|
||||
payload = generate_payload(**locals(), exclude='certificate')
|
||||
payload = generate_payload(**locals(), exclude=['certificate'])
|
||||
if certificate:
|
||||
cert = {'certificate': certificate}
|
||||
req = self.request(api.Methods.SET_WEBHOOK, payload, cert)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue