telebot: typo fix

pull/405/head
Nikita 3 years ago
parent 965cd03621
commit 7f6dcd3f8b

@ -148,7 +148,7 @@ const (
// Will fire on ProximityAlert
//
// Handler: func(*Message)
OnProximityAlert = "\aproximity_alert"
OnProximityAlert = "\aproximity_alert_triggered"
)
// ChatAction is a client-side status indicating bot activity.

@ -49,7 +49,7 @@ type Webhook struct {
ErrorUnixtime int64 `json:"last_error_date"`
ErrorMessage string `json:"last_error_message"`
Ip string `json:"ip_address"`
IP string `json:"ip_address"`
DropUpdates bool `json:"drop_pending_updates"`
TLS *WebhookTLS
@ -91,8 +91,8 @@ func (h *Webhook) getParams() map[string]string {
data, _ := json.Marshal(h.AllowedUpdates)
params["allowed_updates"] = string(data)
}
if h.Ip != "" {
params["ip_address"] = h.Ip
if h.IP != "" {
params["ip_address"] = h.IP
}
if h.DropUpdates {
params["drop_pending_updates"] = strconv.FormatBool(h.DropUpdates)

Loading…
Cancel
Save