feat(types): add language code to user struct
This commit is contained in:
parent
afe64e63be
commit
f1ed87c281
2 changed files with 9 additions and 7 deletions
9
types.go
9
types.go
|
@ -49,10 +49,11 @@ func (ch UpdatesChannel) Clear() {
|
|||
|
||||
// User is a user on Telegram.
|
||||
type User struct {
|
||||
ID int `json:"id"`
|
||||
FirstName string `json:"first_name"`
|
||||
LastName string `json:"last_name"` // optional
|
||||
UserName string `json:"username"` // optional
|
||||
ID int `json:"id"`
|
||||
FirstName string `json:"first_name"`
|
||||
LastName string `json:"last_name"` // optional
|
||||
UserName string `json:"username"` // optional
|
||||
LanguageCode string `json:"language_code"` // optional
|
||||
}
|
||||
|
||||
// String displays a simple text version of a user.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue