mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Bad arguments
This commit is contained in:
parent
f9b9b1d932
commit
afb73fdb5c
2 changed files with 2 additions and 2 deletions
|
|
@ -399,7 +399,7 @@ class Bot(BaseBot):
|
|||
files = {}
|
||||
prepare_file(payload, files, 'document', document)
|
||||
|
||||
result = await self.request(api.Methods.SEND_DOCUMENT, payload, document)
|
||||
result = await self.request(api.Methods.SEND_DOCUMENT, payload, files)
|
||||
return types.Message(**result)
|
||||
|
||||
async def send_video(self, chat_id: typing.Union[base.Integer, base.String],
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ from __future__ import annotations
|
|||
|
||||
import asyncio
|
||||
import typing
|
||||
from contextvars import ContextVar
|
||||
|
||||
from . import base
|
||||
from . import fields
|
||||
|
|
@ -279,6 +278,7 @@ class Chat(base.TelegramObject):
|
|||
:rtype: :obj:`base.Boolean`
|
||||
"""
|
||||
return self.bot.promote_chat_member(self.id,
|
||||
user_id=user_id,
|
||||
can_change_info=can_change_info,
|
||||
can_post_messages=can_post_messages,
|
||||
can_edit_messages=can_edit_messages,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue