mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-22 18:07:21 +00:00
Fix type hints
This commit is contained in:
parent
3e33ef0c0d
commit
394a9adc03
@ -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…
x
Reference in New Issue
Block a user