mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 02:43:45 +03:00
Updated Privacy settings (markdown)
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
|
||||
from telethon import TelegramClient
|
||||
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()
|
||||
bff = client.get_input_entity('@best_friend')
|
||||
|
|
Loading…
Reference in New Issue
Block a user