Skip to content

Commit

Permalink
fix: to func
Browse files Browse the repository at this point in the history
  • Loading branch information
uerax committed Jan 14, 2024
1 parent 1049da9 commit 28b9ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (t *Telegram) Start() {
go t.SendMsg(t.chatId, msg)
// 设置回复Id
case "to":
replyId := update.Message.Text[6:]
replyId := update.Message.Text[4:]
id, err := strconv.ParseInt(strings.TrimSpace(replyId), 0, 64)
if err != nil {
go t.SendMsg(t.chatId, err.Error())
Expand Down

0 comments on commit 28b9ecf

Please sign in to comment.