Telethon: Telegram is having internal issues NeedChatInvalidError: The provided chat is invalid (caused by EditChatPhotoRequest)
当我试图改变聊天照片时,我得到了这个错误。聊天ID是正确的,我检查了它,并尝试与其他人。
await client(EditChatPhotoRequest(chat_id=-1001849699571,
photo=await client.upload_file('noname.png')))
-100前缀仅用于通道。不聊天。(另外,一个Chat请求不接受对等点,所以telethon不会为您解析它,因此-100前缀或负数将变得无用。)
你按原样传递id:
client(EditChatPhotoRequest(chat_id=1849699571, ...))