feat(types): add language code to user struct

This commit is contained in:
mamal 2017-05-22 12:40:04 +04:30
parent afe64e63be
commit f1ed87c281
2 changed files with 9 additions and 7 deletions

View file

@ -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.