Updated Privacy settings (markdown)

Kyle2142 2018-06-24 22:23:47 +02:00
parent 6b441ceab9
commit 5f156540f7

@ -16,7 +16,8 @@ To allow no one except "@best_friend" to see your last seen, you would use this:
```python ```python
from telethon import TelegramClient from telethon import TelegramClient
from telethon.tl.functions.account import SetPrivacyRequest from telethon.tl.functions.account import SetPrivacyRequest
from telethon.tl.types import InputPrivacyKeyStatusTimestamp, InputPrivacyValueAllowUsers, InputPrivacyValueDisallowAll from telethon.tl.types import InputPrivacyKeyStatusTimestamp, InputPrivacyValueAllowUsers,\
InputPrivacyValueDisallowAll
client = TelegramClient(session, api_id, api_hash).start() client = TelegramClient(session, api_id, api_hash).start()
bff = client.get_input_entity('@best_friend') bff = client.get_input_entity('@best_friend')