mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix: permissions field is mandatory for restrictChatMember
This commit is contained in:
parent
2b03ebe479
commit
cf80d9e451
1 changed files with 1 additions and 1 deletions
|
|
@ -1904,7 +1904,7 @@ class Bot(BaseBot, DataMixin, ContextInstanceMixin):
|
|||
self,
|
||||
chat_id: typing.Union[base.Integer, base.String],
|
||||
user_id: base.Integer,
|
||||
permissions: typing.Optional[types.ChatPermissions] = None,
|
||||
permissions: typing.Optional[types.ChatPermissions],
|
||||
use_independent_chat_permissions: typing.Optional[base.Boolean] = None,
|
||||
# permissions argument need to be required after removing other `can_*` arguments
|
||||
until_date: typing.Union[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue