Skip to content

Instantly share code, notes, and snippets.

@pelly-ryu
Created September 9, 2019 10:42
Show Gist options
  • Save pelly-ryu/e1ff50ce3a993dfc96ba0689603af2d4 to your computer and use it in GitHub Desktop.
Save pelly-ryu/e1ff50ce3a993dfc96ba0689603af2d4 to your computer and use it in GitHub Desktop.
telegram update msg
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