Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
Do consistency in chat messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyaglow committed Jun 12, 2019
1 parent 6c20571 commit 7a7e77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func newUpdateMeta(update *tgbotapi.Update) (*updateMeta, error) {
// sendReport sends a report depends on success
func (c *Cortexbot) sendReport(r *cortex.Report, callback *tgbotapi.CallbackQuery) error {
if r.Status == "Failure" {
msg := tgbotapi.NewMessage(callback.Message.Chat.ID, fmt.Sprintf("analyzer %s failed on %s: %s", r.AnalyzerName, r.Data, r.ReportBody.ErrorMessage))
msg := tgbotapi.NewMessage(callback.Message.Chat.ID, fmt.Sprintf("Analyzer %s failed on %s: %s", r.AnalyzerName, r.Data, r.ReportBody.ErrorMessage))
msg.ReplyToMessageID = callback.Message.MessageID
if _, err := c.Bot.Send(msg); err != nil {
return err
Expand Down

0 comments on commit 7a7e77f

Please sign in to comment.