From 69661c223f7f618dbf7a0c6034a144390309cd6d Mon Sep 17 00:00:00 2001 From: indes Date: Sun, 26 May 2019 09:47:01 +0800 Subject: [PATCH] fix(message): minor fix --- README.md | 2 +- bot/bot.go | 2 +- bot/service.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e4f3fee1..8b0d2104 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # flowerss bot [![Build Status](https://travis-ci.org/indes/flowerss-bot.svg?branch=master)](https://travis-ci.org/indes/flowerss-bot) -[![Go Report Card](https://goreportcard.com/badge/github.com/indes/flowerss-bot)](https://goreportcard.com/report/github.com/indes/flowerss-bot) +[![Go Report Card](https://goreportcard.com/badge/github.com/indes/rssflow)](https://goreportcard.com/report/github.com/indes/flowerss-bot) ![GitHub](https://img.shields.io/github/license/indes/flowerss-bot.svg) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Findes%2Fflowerss-bot.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Findes%2Fflowerss-bot?ref=badge_shield) diff --git a/bot/bot.go b/bot/bot.go index 097ba67f..7aaafece 100644 --- a/bot/bot.go +++ b/bot/bot.go @@ -434,7 +434,7 @@ func makeHandle() { if err == nil { _, _ = B.Send( m.Chat, - fmt.Sprintf("频道 [%s](https://t.me/%s) 退订成功 [%s](%s)", source.Title, source.Link), + fmt.Sprintf("频道 [%s](https://t.me/%s) 退订成功 [%s](%s)", channelChat.Title, channelChat.Username, source.Title, source.Link), &tb.SendOptions{ DisableWebPagePreview: true, ParseMode: tb.ModeMarkdown, diff --git a/bot/service.go b/bot/service.go index f28a24c2..1645d473 100644 --- a/bot/service.go +++ b/bot/service.go @@ -45,7 +45,7 @@ func FeedForChannelRegister(m *tb.Message, url string, channelMention string) { log.Printf("%d for %d subscribe [%d]%s %s", m.Chat.ID, channelChat.ID, source.ID, source.Title, source.Link) if err == nil { - newText := fmt.Sprintf("成功为频道 [%s](https://t.me/%s) 订阅 [%s](%s) ", channelChat.Title, channelChat.Username, source.Title, source.Link) + newText := fmt.Sprintf("频道 [%s](https://t.me/%s) 订阅 [%s](%s) 成功", channelChat.Title, channelChat.Username, source.Title, source.Link) _, err = B.Edit(msg, newText, &tb.SendOptions{ DisableWebPagePreview: true,