Skip to content

Commit 6c0fcba

Browse files
author
George Gabolaev
committed
message client
1 parent 32bf469 commit 6c0fcba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bot.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ func (b *Bot) NewChat(id string) *Chat {
125125
// SendMessage sends a message, passed as an argument.
126126
// This method fills the argument with ID of sent message and returns an error if any.
127127
func (b *Bot) SendMessage(message *Message) error {
128+
message.client = b.client
128129
return message.Send()
129130
}
130131

0 commit comments

Comments
 (0)