Skip to content

Commit 3602dbb

Browse files
committed
telegram bot add support group
Signed-off-by: Asutorufa <16442314+Asutorufa@users.noreply.github.com>
1 parent 4f8f1eb commit 3602dbb

File tree

7 files changed

+285
-232
lines changed

7 files changed

+285
-232
lines changed

cmd/tgbot/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/Asutorufa/hujiang_dictionary/jp"
1111
"github.com/Asutorufa/hujiang_dictionary/kotobakku"
1212
"github.com/Asutorufa/hujiang_dictionary/kr"
13-
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
13+
tgbotapi "github.com/OvyFlash/telegram-bot-api"
1414
)
1515

1616
func main() {
@@ -89,8 +89,7 @@ func main() {
8989

9090
for _, r := range resp {
9191
msg := tgbotapi.NewMessage(update.Message.Chat.ID, r)
92-
msg.ReplyToMessageID = update.Message.MessageID
93-
92+
msg.ReplyParameters.MessageID = update.Message.MessageID
9493
bot.Send(msg)
9594
}
9695

0 commit comments

Comments
 (0)