Small fixes
This commit is contained in:
parent
207a1a08f2
commit
c4515aa388
3 changed files with 6 additions and 23 deletions
17
bot.go
17
bot.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue