tg: Fix typo
This commit is contained in:
parent
41cf682fbb
commit
b1a4d4a8c7
2 changed files with 3 additions and 2 deletions
1
Makefile
1
Makefile
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Reference in a new issue