m1guelpf / chatgpt-telegram

Run your own GPTChat Telegram bot, with a single command!
MIT License
3.89k stars 558 forks source link

When used on a group, it shows the bot is replying to all messages, yet only when @bot , the message shows #51

Open stebansaa opened 1 year ago

stebansaa commented 1 year ago

I see a bot is typing message, even when I dont @ bot .

hiifeng commented 1 year ago

I ran into the same problem. I saw from (https://github.com/discountry/chatgpt-telegram) that the Source code needs to be downloaded for compilation, and the format of .env is TELEGRAM_ID=123456 # your ID find from @userinfobot TELEGRAM_TOKEN=123456:abcdefg # your bot token TELEGRAM_BOT_NAME="your_bot_name" # your bot name

That's how I do it, but when used in a group, even without @bot, it's still replying to messages.

GitHub
GitHub - discountry/chatgpt-telegram: Run your own GPTChat Telegram bot, with a single command!
Run your own GPTChat Telegram bot, with a single command! - GitHub - discountry/chatgpt-telegram: Run your own GPTChat Telegram bot, with a single command!
hiifeng commented 1 year ago

This branch (https://github.com/discountry/chatgpt-telegram) supports using @bot in the telegram group, but it has not been merged into the main version, so there is no way to use @bot. I modified the v.0.2.1 version according to the method of the branch author. After recompiling, it works fine. Share the compiled binary file with you first. https://github.com/hiifeng/v2ray/raw/main/chatgpt-telegram-Linux-amd64-v.0.2.1-groupbot.tar.gz

dev-newb commented 1 year ago

Could you compile a version that includes this @bot fix and the ENV nanosecond fix from earlier today? That should make the perfect GPT bot for groups!

hiifeng commented 1 year ago

Could you compile a version that includes this @bot fix and the ENV nanosecond fix from earlier today? That should make the perfect GPT bot for groups!

Currently chatgpt-telegram cannot run, and the fault still exists in the latest version v0.2.4. I think it should be related to openAI’s upgrade of cloudflare yesterday. I'm not very familiar with the go language, so I can't solve this problem. I submitted Issues, and after the author fixes the bug, I'm considering recompiling to solve the problem of @bot in the group.