Telegram API python的联合群组(telithon telegram)

2024-10-01 02:38:06 发布

您现在位置:Python中文网/ 问答频道 /正文

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) 但我有个错误

^{pr2}$

我使用这个脚本:https://github.com/LonamiWebs/Telethon/wiki/Joining-a-chat-or-channel


Tags: fromhttpsimportclientapiidconnecthash