all repos — telegram-bot-api @ 8a6eeebcb171915f7cd412023f567aa2e6a6cd45

Golang bindings for the Telegram Bot API

Merge pull request #291 from vgxbj/patch-1

Document `NewMessageToChannel` clearer
Kirill Zhuharev zhuharev@users.noreply.github.com
Thu, 19 Mar 2020 07:12:27 +0300
commit

8a6eeebcb171915f7cd412023f567aa2e6a6cd45

parent

9fd8c1e76ce69280e9859c9cab81c69bedbed7f2

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M helpers.gohelpers.go

@@ -29,7 +29,8 @@

// NewMessageToChannel creates a new Message that is sent to a channel // by username. // -// username is the username of the channel, text is the message text. +// username is the username of the channel, text is the message text, +// and the username should be in the form of `@username`. func NewMessageToChannel(username string, text string) MessageConfig { return MessageConfig{ BaseChat: BaseChat{