This commit is contained in:
parent
21e4c434fd
commit
72c6dd6982
12 changed files with 695 additions and 48 deletions
|
@ -103,8 +103,11 @@ func (t *TelegramPlatform) ParseIncomingMessage(r *http.Request) (*model.Message
|
|||
Title string `json:"title,omitempty"`
|
||||
Username string `json:"username,omitempty"`
|
||||
} `json:"chat"`
|
||||
Date int `json:"date"`
|
||||
Text string `json:"text"`
|
||||
Date int `json:"date"`
|
||||
Text string `json:"text"`
|
||||
ReplyToMessage struct {
|
||||
MessageID int `json:"message_id"`
|
||||
} `json:"reply_to_message"`
|
||||
} `json:"message"`
|
||||
}
|
||||
|
||||
|
@ -128,6 +131,7 @@ func (t *TelegramPlatform) ParseIncomingMessage(r *http.Request) (*model.Message
|
|||
FromBot: update.Message.From.IsBot,
|
||||
Date: time.Unix(int64(update.Message.Date), 0),
|
||||
ID: strconv.Itoa(update.Message.MessageID),
|
||||
ReplyTo: strconv.Itoa(update.Message.ReplyToMessage.MessageID),
|
||||
Raw: raw,
|
||||
}
|
||||
|
||||
|
@ -259,4 +263,4 @@ func (t *TelegramPlatform) SendMessage(msg *model.Message) error {
|
|||
|
||||
t.log.Debug("Message sent successfully")
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue