Hootrix / keyword_alert_bot

telegram keyword alert bot ⏰
https://t.me/keyword_alert_bot
GNU General Public License v3.0
265 stars 62 forks source link

caused by ResolveUsernameRequest [BUG] #106

Open xhwapp opened 1 week ago

xhwapp commented 1 week ago

问题描述 Describe the bug

An error is displayed when sending sign commands (Channel error, unable to use: The key is not registered in the system (caused by ResolveUsernameRequest))

订阅信息 command Info

ILNAR, [21 нояб. 2024 г., 15:41:23]: /subscribe keyword1,keyword2 tianfutong,xiaobaiup

keytg2_bot, [21 нояб. 2024 г., 15:41:23]: 无法使用该频道:tianfutong Channel error, unable to use: The key is not registered in the system (caused by ResolveUsernameRequest)

Hootrix commented 1 week ago

That's strange, haven't had that problem. Suggest you terminate and try to clean out the files in the .tmp directory before logging in again.

xhwapp commented 1 week ago

tmp files deleted, restarted, still gives an error

Channel error, unable to use: The key is not registered in the system (caused by ResolveUsernameRequest) [ERROR][keyword_alert.root][2024-11-22 08:09:30UTC]-->it_marketing_chat JoinChannelRequest ERROR:The key is not registered in the system (caused by ResolveUsernameRequest) [WARNING][keyword_alert.root][2024-11-22 08:09:30UTC]-->it_marketing_chat JoinChannelRequest fail. cache join. cache find count: 0 [ERROR][keyword_alert.root][2024-11-22 08:09:30UTC]-->join_channel_insert_subscribe 错误:无法使用该频道:it_marketing_chat

Hootrix commented 1 week ago

It does seem like it's not a keyword_alert_bot issue. The preferred recommendation is to use a docker environment to run it.

Your problem is very similar to https://github.com/LonamiWebs/Telethon/issues/814#issuecomment-1741293466