Skip to content

Commit

Permalink
Fix mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
SpEcHiDe committed Feb 23, 2024
1 parent 81464b3 commit 0281138
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyrogram/methods/chats/get_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def get_chat(
"""
match = self.INVITE_LINK_RE.match(str(chat_id))

if not self.me.is_bot and match:
if match:
r = await self.invoke(
raw.functions.messages.CheckChatInvite(
hash=match.group(1)
Expand Down
8 changes: 4 additions & 4 deletions pyrogram/types/user_and_chats/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class Chat(Object):
"""A chat.
Parameters:
id (``int``):
id (``int``, *optional*):
Unique identifier for this chat.
type (:obj:`~pyrogram.enums.ChatType`):
type (:obj:`~pyrogram.enums.ChatType`, *optional*):
Type of chat.
title (``str``, *optional*):
Expand Down Expand Up @@ -176,8 +176,8 @@ def __init__(
self,
*,
client: "pyrogram.Client" = None,
id: int,
type: "enums.ChatType",
id: int = None,
type: "enums.ChatType" = None,
is_verified: bool = None,
is_restricted: bool = None,
is_creator: bool = None,
Expand Down

0 comments on commit 0281138

Please sign in to comment.