我使用这个脚本的连接,并创建活动上我怎么可以恢复旧的电视马拉松电报会议,并重新连接这(不再次发送代码))
from telethon import TelegramClient
from telethon.tl.functions.messages import GetHistoryRequest
from telethon.utils import get_input_peer
api_id = 7****
api_hash = 'ef584d*****************'
client = TelegramClient('+15159947451', api_id, api_hash)
client.connect()
if not client.is_user_authorized():
client.send_code_request('+15159947451')
client.sign_in('+15159947451', cod)
这种鳕鱼的会议我可以登录这个好号码电报并创建文件:+ 15159947451.session。
现在我关闭并断开连接,我怎么能再次用这个文件+15159947451.session登录这个号码。
我用这个代码,但是这个代码有错误:
from telethon import TelegramClient
from telethon.tl.functions.messages import GetHistoryRequest
from telethon.utils import get_input_peer
api_id = 7****
api_hash = 'ef584d180eee*******************'
number='+15152934803'
client = TelegramClient('00', api_id, api_hash)
client.session.try_load_or_create_new(session_user_id='+15159947451')
client.connect()
,但我有这个错误
raise error
telethon.errors.RPCError: (RPCError(...), 'AUTH_KEY_UNREGISTERED (401): The key is not registered in the system.')
你怎么会不满?您是否最后称Telethon有任何不协调功能? – apadana