feat: add kanji command

This commit is contained in:
Yiyang Kang 2023-04-21 15:43:05 +08:00
parent f6f8563aba
commit 2a8605631b
5 changed files with 96 additions and 0 deletions

1
bot.go
View file

@ -42,6 +42,7 @@ func initBot() (*tele.Bot, error) {
for _, tbtn := range translateBtns {
b.Handle(tbtn, handleTranslateBtn)
}
b.Handle("/kanji", handleKanjiCmd)
b.Handle(tele.OnText, handleGeneralMessage)
b.Handle(tele.OnSticker, handleGeneralMessage)