Как выйти из закрытой группы в Telegram с помощью PythonPython

Программы на Python
Anonymous
Как выйти из закрытой группы в Telegram с помощью Python

Сообщение Anonymous »

Следующий код предназначен для присоединения к группе в Telegram:

Код: Выделить всё

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.messages.ImportChatInviteRequest(
hash='A4LmkR23G0IGxBE71zZfo1'
))
print(result.stringify())
Как выйти из этой группы после завершения работы?


Подробнее здесь: https://stackoverflow.com/questions/640 ... ith-python

Вернуться в «Python»