尝试从我自己的电报通道(TelethonAPI)获取用户时获取权限错误

2024-10-03 04:31:03 发布

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

我正在使用Telethon API并在函数GetParticipantsRequest中遇到一个特权错误,当我试图让用户进入我自己的telegram频道时,我是管理员。在

telethon.errors.rpc_error_list.ChatAdminRequiredError: (ChatAdminRequiredError(...), 'Chat admin privileges are required to do that in the specified chat (for e
xample, to send a message in a channel which is not yours)')

毫无意义,因为当我对我的一个电报组执行相同的代码例程时,它就像一个符咒。在

例行公事如下:

^{pr2}$

我有什么遗漏吗?在


Tags: to函数用户inapi管理员错误频道