from telethon import TelegramClient
from telethon.tl.functions.messages import ImportChatInviteRequest
api_id = ++++
api_hash = '+++++++++++++++++++++'
client = TelegramClient('+1 ++++++', api_id, api_hash)
client.connect()
updates = client(ImportChatInviteRequest('GQVuGUG5pPEBxM6tQAeqqA'))
我要联合此组电报(https://t.me/joinchat/GQVuGUG5pPEBxM6tQAeqqA)
但是我有这个错误
Traceback (most recent call last):
updates = client(ImportChatInviteRequest('GQVuGUG5pPEBxM6tQAeqqA'))
TypeError: 'TelegramClient' object is not callable
我使用以下脚本:https://github.com/LonamiWebs/Telethon/wiki/Joining-a-chat-or-channel
最佳答案
升级telithon电报
pip install --upgrade telethon
关于python - Telegram API python(telithon telegram)联合组,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/45633905/