feat: add kanji command
This commit is contained in:
parent
f6f8563aba
commit
2a8605631b
5 changed files with 96 additions and 0 deletions
1
bot.go
1
bot.go
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue