mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Fix type hints
This commit is contained in:
parent
3e33ef0c0d
commit
394a9adc03
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Union, List
|
from typing import Union, Optional, AsyncGenerator
|
||||||
|
|
||||||
import pyrogram
|
import pyrogram
|
||||||
from pyrogram import raw, types, enums
|
from pyrogram import raw, types, enums
|
||||||
|
|
@ -64,7 +64,7 @@ class GetChatMembers:
|
||||||
query: str = "",
|
query: str = "",
|
||||||
limit: int = 0,
|
limit: int = 0,
|
||||||
filter: "enums.ChatMembersFilter" = enums.ChatMembersFilter.SEARCH
|
filter: "enums.ChatMembersFilter" = enums.ChatMembersFilter.SEARCH
|
||||||
) -> List["types.ChatMember"]:
|
) -> Optional[AsyncGenerator["types.ChatMember", None]]:
|
||||||
"""Get the members list of a chat.
|
"""Get the members list of a chat.
|
||||||
|
|
||||||
A chat can be either a basic group, a supergroup or a channel.
|
A chat can be either a basic group, a supergroup or a channel.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue