Fixed duplicate DeleteMessage declarations!

pull/103/head
Arman 8 years ago committed by GitHub
parent 2021eed656
commit f16090436b
  1. 18
      configs.go

@ -1007,21 +1007,3 @@ type PreCheckoutConfig struct {
ErrorMessage string
}
// DeleteMessageConfig contains information of a message in a chat to delete.
type DeleteMessageConfig struct {
ChatID int64
MessageID int
}
func (config DeleteMessageConfig) method() string {
return "deleteMessage"
}
func (config DeleteMessageConfig) values() (url.Values, error) {
v := url.Values{}
v.Add("chat_id", strconv.FormatInt(config.ChatID, 10))
v.Add("message_id", strconv.Itoa(config.MessageID))
return v, nil
}