|
|
|
@ -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 |
|
|
|
|
} |
|
|
|
|