浏览代码

fixed telego

after  github.com/mymmrac/telego from 0.26.3 to 0.27.0
MHSanaei 1 年之前
父节点
当前提交
cad6eeb9f5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/service/tgbot.go

+ 1 - 1
web/service/tgbot.go

@@ -192,7 +192,7 @@ func (t *Tgbot) OnReceive() {
 func (t *Tgbot) answerCommand(message *telego.Message, chatId int64, isAdmin bool) {
 	msg, onlyMessage := "", false
 
-	command, commandArgs := tu.ParseCommand(message.Text)
+	command, _, commandArgs := tu.ParseCommand(message.Text)
 
 	// Extract the command from the Message.
 	switch command {