Skip to content

Commit

Permalink
chat,message: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
demget committed Nov 19, 2023
1 parent d883371 commit 03dcac7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ import (
type User struct {
ID int64 `json:"id"`

FirstName string `json:"first_name"`
LastName string `json:"last_name"`
IsForum bool `json:"is_forum"`
Username string `json:"username"`
LanguageCode string `json:"language_code"`
IsBot bool `json:"is_bot"`
IsPremium bool `json:"is_premium"`
AddedToMenu bool `json:"added_to_attachment_menu"`
Usernames []string `json:"active_usernames"`
CustomEmojiStatusID string `json:"emoji_status_custom_emoji_id"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
IsForum bool `json:"is_forum"`
Username string `json:"username"`
LanguageCode string `json:"language_code"`
IsBot bool `json:"is_bot"`
IsPremium bool `json:"is_premium"`
AddedToMenu bool `json:"added_to_attachment_menu"`
Usernames []string `json:"active_usernames"`
CustomEmojiStatus string `json:"emoji_status_custom_emoji_id"`

// Returns only in getMe
CanJoinGroups bool `json:"can_join_groups"`
Expand Down
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type Message struct {
LastEdit int64 `json:"edit_date"`

// (Optional) True, if the message is sent to a forum topic.
IsTopicMessage bool `json:"is_topic_message"`
TopicMessage bool `json:"is_topic_message"`

// (Optional) Message can't be forwarded.
Protected bool `json:"has_protected_content,omitempty"`
Expand Down

0 comments on commit 03dcac7

Please sign in to comment.