2023-05-26 04:43:51 +03:00
|
|
|
package telegram
|
|
|
|
|
2023-07-13 19:18:44 +03:00
|
|
|
type ChatType string
|
|
|
|
|
|
|
|
const (
|
|
|
|
Private = "private"
|
|
|
|
Group = "group"
|
|
|
|
SuperGroup = "supergroup"
|
|
|
|
Channel = "channel"
|
|
|
|
)
|
|
|
|
|
2023-05-26 04:43:51 +03:00
|
|
|
type Chat struct {
|
2023-07-13 19:18:44 +03:00
|
|
|
ID int `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
|
2023-05-26 04:43:51 +03:00
|
|
|
}
|