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'))
我想加入这个群组 Telegram ( 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 telegram
pip install --upgrade telethon
关于python - Telegram API python 联合小组(telithon telegram),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45633905/