all repos — telegram-bot-api @ f8cc0d2aaa9960287f9eddc1f393bff3fbf7181e

Golang bindings for the Telegram Bot API

Bot::QuickSend removed
Gleb Sinyavsky zhulik.gleb@gmail.com
Wed, 16 Dec 2015 11:38:39 +0300
commit

f8cc0d2aaa9960287f9eddc1f393bff3fbf7181e

parent

1a3e995b376de8e2cb9d01565ced80d8b103896b

3 files changed, 0 insertions(+), 18 deletions(-)

jump to
M README.mdREADME.md

@@ -85,8 +85,6 @@ }

} ``` -For quickly send text message you can use BotAPI method `QuickSend(chatID, "your message")` - If you need, you may generate a self signed certficate, as this requires HTTPS / TLS. The above example tells Telegram that this is your certificate and that it should be trusted, even though it is not properly signed. openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 3560 -subj "//O=Org\CN=Test" -nodes
M bot.gobot.go

@@ -220,12 +220,6 @@ return bot.sendChattable(c)

} } -// QuickSend will send message to selected chat -func (bot *BotAPI) QuickSend(chatID int, message string) (Message, error) { - msg := NewMessage(chatID, message) - return bot.Send(msg) -} - func (bot *BotAPI) debugLog(context string, v url.Values, message interface{}) { if bot.Debug { log.Printf("%s req : %+v\n", context, v)
M bot_test.gobot_test.go

@@ -342,16 +342,6 @@ t.Fail()

} } -func TestQuickSend(t *testing.T) { - bot, _ := getBot(t) - - _, err := bot.QuickSend(ChatID, "test message") - - if err != nil { - t.Fail() - } -} - func TestGetUserProfilePhotos(t *testing.T) { bot, _ := getBot(t)