mirror of
https://github.com/tiennm99/openai-status-bot.git
synced 2026-10-14 06:17:57 +00:00
20 lines
436 B
Go
20 lines
436 B
Go
package telegram
|
|
|
|
type Update struct {
|
|
UpdateID int64 `json:"update_id"`
|
|
Message *Message `json:"message"`
|
|
}
|
|
|
|
type Message struct {
|
|
MessageID int64 `json:"message_id"`
|
|
MessageThreadID *int `json:"message_thread_id,omitempty"`
|
|
Text string `json:"text"`
|
|
Chat Chat `json:"chat"`
|
|
}
|
|
|
|
type Chat struct {
|
|
ID int64 `json:"id"`
|
|
Type string `json:"type"`
|
|
Title string `json:"title,omitempty"`
|
|
}
|