Skip to content

Commit f8cc0d2

Browse files
committed
Bot::QuickSend removed
1 parent 1a3e995 commit f8cc0d2

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ func main() {
8585
}
8686
```
8787

88-
For quickly send text message you can use BotAPI method `QuickSend(chatID, "your message")`
89-
9088
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.
9189

9290
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 3560 -subj "//O=Org\CN=Test" -nodes

bot.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,6 @@ func (bot *BotAPI) Send(c Chattable) (Message, error) {
220220
}
221221
}
222222

223-
// QuickSend will send message to selected chat
224-
func (bot *BotAPI) QuickSend(chatID int, message string) (Message, error) {
225-
msg := NewMessage(chatID, message)
226-
return bot.Send(msg)
227-
}
228-
229223
func (bot *BotAPI) debugLog(context string, v url.Values, message interface{}) {
230224
if bot.Debug {
231225
log.Printf("%s req : %+v\n", context, v)

bot_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -342,16 +342,6 @@ func TestSendChatConfig(t *testing.T) {
342342
}
343343
}
344344

345-
func TestQuickSend(t *testing.T) {
346-
bot, _ := getBot(t)
347-
348-
_, err := bot.QuickSend(ChatID, "test message")
349-
350-
if err != nil {
351-
t.Fail()
352-
}
353-
}
354-
355345
func TestGetUserProfilePhotos(t *testing.T) {
356346
bot, _ := getBot(t)
357347

0 commit comments

Comments
 (0)