chat.go 713 B

12345678910111213141516171819
  1. package telegram
  2. type ChatType string
  3. const (
  4. Private = "private"
  5. Group = "group"
  6. SuperGroup = "supergroup"
  7. Channel = "channel"
  8. )
  9. type Chat struct {
  10. ID int64 `json:"id"`
  11. Title string `json:"title"` // Title for supergroups, channels and group chats
  12. Type ChatType `json:"type"` // Type of chat, can be either “private”, “group”, “supergroup” or “channel”
  13. FirstName string `json:"first_name"` // FirstName of the other party in a private chat
  14. LastName string `json:"last_name"` // LastName of the other party in a private chat
  15. UserName string `json:"username"` // UserName for private chats, supergroups and channels if available
  16. }