-
-
Save pelly-ryu/e1ff50ce3a993dfc96ba0689603af2d4 to your computer and use it in GitHub Desktop.
telegram update msg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type UpdateMsg struct { | |
UpdateID int64 `json:"update_id"` | |
Message struct { | |
Text string `json:"text"` | |
From struct { | |
ChatID int64 `json:"id"` | |
FirstName string `json:"first_name"` | |
LastName string `json:"last_name"` | |
Username string `json:"username"` | |
} `json:"from"` | |
Chat struct { | |
ChatId int64 `json:"id"` | |
Title string `json:"title"` | |
Type string `json:"type"` | |
} `json:"chat"` | |
} `json:"message"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment