-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathedit_message_type.go
67 lines (55 loc) · 2.67 KB
/
edit_message_type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package telebot
type editMessageParams struct {
ChatID any `json:"chat_id"`
MessageID int64 `json:"message_id"`
InlineMessageID string `json:"inline_message_id,omitempty"`
ReplyMarkup ReplyMarkup
}
type editMessageTextParams struct {
ChatID any `json:"chat_id"`
MessageID int64 `json:"message_id"`
InlineMessageID string `json:"inline_message_id,omitempty"`
ReplyMarkup ReplyMarkup `json:"reply_markup,omitempty"`
Text string `json:"text" validate:"required,max=4096"`
ParseMode ParseMode `json:"parse_mode,omitempty"`
Entities []Entity `json:"entities,omitempty"`
LinkPreviewOptions *LinkPreviewOptions `json:"link_preview_options,omitempty"`
}
type editMessageCaptionParams struct {
ChatID any `json:"chat_id"`
MessageID int64 `json:"message_id"`
InlineMessageID string `json:"inline_message_id,omitempty"`
ReplyMarkup ReplyMarkup `json:"reply_markup,omitempty"`
Caption string `json:"text" validate:"required,max=4096"`
ParseMode ParseMode `json:"parse_mode,omitempty"`
Entities []Entity `json:"caption_entities,omitempty"`
}
type editMessageMediaParams struct {
ChatID any `json:"chat_id"`
MessageID int64 `json:"message_id"`
InlineMessageID string `json:"inline_message_id,omitempty"`
ReplyMarkup ReplyMarkup `json:"reply_markup,omitempty"`
Media InputMedia `json:"media"`
}
type editMessageLiveLocationParams struct {
ChatID any `json:"chat_id"`
MessageID int64 `json:"message_id"`
InlineMessageID string `json:"inline_message_id,omitempty"`
ReplyMarkup ReplyMarkup `json:"reply_markup,omitempty"`
// LivePeriod new period in seconds during which the location can be updated,
// starting from the message send date. If 0x7FFFFFFF is specified, then the location can be updated forever.
// Otherwise, the new value must not exceed the current live_period by more than a day,
// and the live location expiration date must remain within the next 90 days.
// If not specified, then live_period remains unchanged
LivePeriod *int `json:"live_period,omitempty"`
Latitude float64 `json:"latitude" validate:"required"`
Longitude float64 `json:"longitude" validate:"required"`
HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"`
Heading int `json:"heading,omitempty"`
ProximityAlertRadius int `json:"proximity_alert_radius,omitempty"`
}
type deleteMessageParams struct {
ChatID any `json:"chat_id"`
MessageID int64 `json:"message_id"`
MessageIDs []int64 `json:"message_ids,omitempty"`
}