get_blocked_message_senders()¶
- Client.get_blocked_message_senders()¶
Returns users and chats that were blocked by the current user.
Usable by Users Bots- Parameters:
block_list (
BlockList, optional) – The block list from which to return users.offset (
int, optional) – Number of users and chats to skip in the result, must be non-negative.limit (
int, optional) – The maximum number of users and chats to return.
- Returns:
AsyncGenerator of
Chat– An async generator that yields Chat objects.
Example
async for chat in app.get_blocked_message_senders(): print(chat)