Small fixes

This commit is contained in:
Gleb Sinyavsky 2015-11-21 14:44:26 +03:00
parent 207a1a08f2
commit c4515aa388
3 changed files with 6 additions and 23 deletions

17
bot.go
View file

@ -423,20 +423,3 @@ func (bot *BotAPI) ListenForWebhook(pattern string) http.Handler {
return handler
}
// SendChatAction sets a current action in a chat.
//
// Requires ChatID and a valid Action (see Chat constants).
func (bot *BotAPI) SendChatAction(config ChatActionConfig) error {
v, err := config.Values()
if err != nil {
return err
}
_, err = bot.MakeRequest("sendChatAction", v)
if err != nil {
return err
}
return nil
}