Small fixes on example docs (#460)
This commit is contained in:
parent
879e0bfc2d
commit
b95587ed31
@ -66,7 +66,7 @@ class RestrictChatMember(BaseClient):
|
|||||||
app.restrict_chat_member(chat_id, user_id, ChatPermissions())
|
app.restrict_chat_member(chat_id, user_id, ChatPermissions())
|
||||||
|
|
||||||
# Chat member muted for 24h
|
# 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
|
# Chat member can only send text messages
|
||||||
app.restrict_chat_member(chat_id, user_id, ChatPermissions(can_send_messages=True))
|
app.restrict_chat_member(chat_id, user_id, ChatPermissions(can_send_messages=True))
|
||||||
|
Loading…
Reference in New Issue
Block a user