From b95587ed31ee5b5ff690360ecf5e2ddf180fd24e Mon Sep 17 00:00:00 2001 From: Yusuf_M_Thon_iD <32301831+Sunda001@users.noreply.github.com> Date: Fri, 21 Aug 2020 12:23:33 +0700 Subject: [PATCH] Small fixes on example docs (#460) --- pyrogram/client/methods/chats/restrict_chat_member.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/methods/chats/restrict_chat_member.py b/pyrogram/client/methods/chats/restrict_chat_member.py index 92552678..a0707078 100644 --- a/pyrogram/client/methods/chats/restrict_chat_member.py +++ b/pyrogram/client/methods/chats/restrict_chat_member.py @@ -66,7 +66,7 @@ class RestrictChatMember(BaseClient): app.restrict_chat_member(chat_id, user_id, ChatPermissions()) # Chat member muted for 24h - app.restrict_chat_member(chat_id, user_id, ChatPermissions(), int(time.time() + 86400)) + app.restrict_chat_member(chat_id, user_id, ChatPermissions(), int(time() + 86400)) # Chat member can only send text messages app.restrict_chat_member(chat_id, user_id, ChatPermissions(can_send_messages=True))