Bound method unban_member of
Use as a shortcut for:
await client.restrict_chat_member( chat_id=chat_id, user_id=user_id, permissions=ChatPermissions() )
await chat.restrict_member(user_id, ChatPermissions())
str) – Unique identifier (int) or username (str) of the target user. For a contact that exists in your Telegram address book you can use his phone number (str).
ChatPermissions) – New user permissions.
datetime, optional) – Date when the user will be unbanned. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Defaults to epoch (ban forever).
Chat– On success, a chat object is returned.
RPCError – In case of a Telegram RPC error.