Merge pull request #291 from vgxbj/patch-1

Document `NewMessageToChannel` clearer
This commit is contained in:
Kirill Zhuharev 2020-03-19 07:12:27 +03:00 committed by GitHub
commit 8a6eeebcb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,8 @@ func NewDeleteMessage(chatID int64, messageID int) DeleteMessageConfig {
// 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{