Skip to content

Commit

Permalink
fix(message): minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
indes committed May 26, 2019
1 parent ca02f46 commit 69661c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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)

Expand Down
2 changes: 1 addition & 1 deletion bot/bot.go
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion bot/service.go
Expand Up @@ -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,
Expand Down

0 comments on commit 69661c2

Please sign in to comment.