Skip to content

Commit

Permalink
👽 Telegram Bot API 6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
j1g5awi committed Nov 18, 2023
1 parent 9d6f332 commit 7a814e7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nonebot/adapters/telegram/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,15 +518,18 @@ async def promote_chat_member(
user_id: int,
is_anonymous: Optional[bool] = None,
can_manage_chat: Optional[bool] = None,
can_post_messages: Optional[bool] = None,
can_edit_messages: Optional[bool] = None,
can_delete_messages: Optional[bool] = None,
can_manage_video_chats: Optional[bool] = None,
can_restrict_members: Optional[bool] = None,
can_promote_members: Optional[bool] = None,
can_change_info: Optional[bool] = None,
can_invite_users: Optional[bool] = None,
can_post_messages: Optional[bool] = None,
can_edit_messages: Optional[bool] = None,
can_pin_messages: Optional[bool] = None,
can_post_stories: Optional[bool] = None,
can_edit_stories: Optional[bool] = None,
can_delete_stories: Optional[bool] = None,
can_manage_topics: Optional[bool] = None,
) -> Literal[True]:
...
Expand Down
8 changes: 8 additions & 0 deletions nonebot/adapters/telegram/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,9 @@ class ChatShared(BaseModel):


class WriteAccessAllowed(BaseModel):
from_request: Optional[bool] = None
web_app_name: Optional[str] = None
from_attachment_menu: Optional[bool] = None


class VideoChatScheduled(BaseModel):
Expand Down Expand Up @@ -599,6 +601,9 @@ class ChatAdministratorRights(BaseModel):
can_post_messages: Optional[bool] = None
can_edit_messages: Optional[bool] = None
can_pin_messages: Optional[bool] = None
can_post_stories: Optional[bool] = None
can_edit_stories: Optional[bool] = None
can_delete_stories: Optional[bool] = None
can_manage_topics: Optional[bool] = None


Expand Down Expand Up @@ -627,6 +632,9 @@ class ChatMemberAdministrator(ChatMember):
can_post_messages: Optional[bool] = None
can_edit_messages: Optional[bool] = None
can_pin_messages: Optional[bool] = None
can_post_stories: Optional[bool] = None
can_edit_stories: Optional[bool] = None
can_delete_stories: Optional[bool] = None
can_manage_topics: Optional[bool] = None
custom_title: Optional[str] = None

Expand Down

0 comments on commit 7a814e7

Please sign in to comment.