Skip to content

Commit a92f88c

Browse files
author
Syfaro
committed
Add some missing comments.
1 parent db12d94 commit a92f88c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

configs.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,8 @@ type CallbackConfig struct {
560560
ShowAlert bool `json:"show_alert"`
561561
}
562562

563+
// ChatMemberConfig contains information about a user in a chat for use
564+
// with administrative functions such as kicking or unbanning a user.
563565
type ChatMemberConfig struct {
564566
ChatID int64
565567
SuperGroupUsername string

types.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,17 +425,23 @@ type ChosenInlineResult struct {
425425
Query string `json:"query"`
426426
}
427427

428+
// InputTextMessageContent contains text for displaying
429+
// as an inline query result.
428430
type InputTextMessageContent struct {
429431
Text string `json:"message_text"`
430432
ParseMode string `json:"parse_mode"`
431433
DisableWebPagePreview bool `json:"disable_web_page_preview"`
432434
}
433435

436+
// InputLocationMessageContent contains a location for displaying
437+
// as an inline query result.
434438
type InputLocationMessageContent struct {
435439
Latitude float64 `json:"latitude"`
436440
Longitude float64 `json:"longitude"`
437441
}
438442

443+
// InputVenueMessageContent contains a venue for displaying
444+
// as an inline query result.
439445
type InputVenueMessageContent struct {
440446
Latitude float64 `json:"latitude"`
441447
Longitude float64 `json:"longitude"`
@@ -444,6 +450,8 @@ type InputVenueMessageContent struct {
444450
FoursquareID string `json:"foursquare_id"`
445451
}
446452

453+
// InputContactMessageContent contains a contact for displaying
454+
// as an inline query result.
447455
type InputContactMessageContent struct {
448456
PhoneNumber string `json:"phone_number"`
449457
FirstName string `json:"first_name"`

0 commit comments

Comments
 (0)