We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30cd60d commit e6c1022Copy full SHA for e6c1022
main.go
@@ -87,7 +87,7 @@ func main() {
87
}
88
89
bot.Request(tgbotapi.NewChatAction(update.Message.Chat.ID, "typing"))
90
- if !update.Message.IsCommand() {
+ if !update.Message.IsCommand() && (update.Message.Chat.IsPrivate() || (update.Message.Chat.Type == "group" || update.Message.Chat.Type == "supergroup") && strings.HasPrefix(update.Message.Text, "@" + bot.Self.UserName)) {
91
feed, err := chatGPT.SendMessage(update.Message.Text, userConversations[update.Message.Chat.ID].ConversationID, userConversations[update.Message.Chat.ID].LastMessageID)
92
if err != nil {
93
msg.Text = fmt.Sprintf("Error: %v", err)
0 commit comments