mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 11:53:08 +00:00
Fix type hints
This commit is contained in:
parent
1d21329b7b
commit
dd2433a7c7
1 changed files with 4 additions and 2 deletions
|
@ -547,12 +547,14 @@ class UserModel:
|
|||
self.users[user_id] = result.update
|
||||
return result.update
|
||||
|
||||
def get_group_info(self, group_id: int) -> None:
|
||||
def get_group_info(self, group_id: int) -> Optional[Dict[str, Any]]:
|
||||
if group_id in self.groups:
|
||||
return self.groups[group_id]
|
||||
self.tg.get_basic_group(group_id)
|
||||
return None
|
||||
|
||||
def get_supergroup_info(self, supergroup_id):
|
||||
def get_supergroup_info(self, supergroup_id: int) -> Optional[Dict[str, Any]]:
|
||||
if supergroup_id in self.supergroups:
|
||||
return self.supergroups[supergroup_id]
|
||||
self.tg.get_supergroup(supergroup_id)
|
||||
return None
|
||||
|
|
Loading…
Reference in a new issue