mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 23:22:47 +08:00
9987337eca
Fix all ID from int to int64 to avoid 32bits machine break
19 lines
713 B
Go
19 lines
713 B
Go
package telegram
|
|
|
|
type ChatType string
|
|
|
|
const (
|
|
Private = "private"
|
|
Group = "group"
|
|
SuperGroup = "supergroup"
|
|
Channel = "channel"
|
|
)
|
|
|
|
type Chat struct {
|
|
ID int64 `json:"id"`
|
|
Title string `json:"title"` // Title for supergroups, channels and group chats
|
|
Type ChatType `json:"type"` // Type of chat, can be either “private”, “group”, “supergroup” or “channel”
|
|
FirstName string `json:"first_name"` // FirstName of the other party in a private chat
|
|
LastName string `json:"last_name"` // LastName of the other party in a private chat
|
|
UserName string `json:"username"` // UserName for private chats, supergroups and channels if available
|
|
}
|