tg: Fix typo

This commit is contained in:
Hamcha 2016-02-19 19:25:28 +01:00
parent 41cf682fbb
commit b1a4d4a8c7
2 changed files with 3 additions and 2 deletions

View file

@ -4,6 +4,7 @@ deps:
go get github.com/boltdb/bolt/... go get github.com/boltdb/bolt/...
go get github.com/golang/freetype go get github.com/golang/freetype
go get github.com/llgcode/draw2d go get github.com/llgcode/draw2d
go get github.com/llgcode/draw2d/draw2dimg
install-tg: install-tg:
go install github.com/hamcha/clessy/tg go install github.com/hamcha/clessy/tg

View file

@ -38,7 +38,7 @@ func (b *Broker) Close() {
// SendTextMessage sends a HTML-styles text message to a chat. // SendTextMessage sends a HTML-styles text message to a chat.
// A reply_to message ID can be specified as optional parameter. // A reply_to message ID can be specified as optional parameter.
func (b *Broker) SendTextMessage(chat *APIChat, text string, original *int) { func (b *Broker) SendTextMessage(chat *APIChat, text string, original *int) {
sendCmd(ClientCommand{ b.sendCmd(ClientCommand{
Type: CmdSendTextMessage, Type: CmdSendTextMessage,
TextMessageData: &ClientTextMessageData{ TextMessageData: &ClientTextMessageData{
Text: text, Text: text,
@ -51,7 +51,7 @@ func (b *Broker) SendTextMessage(chat *APIChat, text string, original *int) {
// SendPhoto sends a photo with an optional caption to a chat. // SendPhoto sends a photo with an optional caption to a chat.
// A reply_to message ID can be specified as optional parameter. // A reply_to message ID can be specified as optional parameter.
func (b *Broker) SendPhoto(chat *APIChat, data []byte, caption *string, original *int) { func (b *Broker) SendPhoto(chat *APIChat, data []byte, caption *string, original *int) {
sendCmd(ClientCommand{ b.sendCmd(ClientCommand{
Type: CmdSendPhoto, Type: CmdSendPhoto,
PhotoData: &ClientPhotoData{ PhotoData: &ClientPhotoData{
ChatID: chat.ChatID, ChatID: chat.ChatID,