package domain // BotAPIChat is a peer resolved for the Bot API getChat method. The bot need // not be a member: a public channel or supergroup resolves (projected as a // preview), while a private chat the bot has no access to resolves to an error. type BotAPIChat struct { Peer Peer // domain peer; the Bot API chat-id encoding is applied by the projection Type string // "private" | "group" | "supergroup" | "channel" Title string Username string FirstName string LastName string Description string // channel/supergroup "about" IsForum bool Verified bool Scam bool Fake bool // Channel/supergroup only, from the full view. SlowModeDelay int LinkedChatID int64 // domain channel id; the projection applies the Bot API encoding Permissions *ChannelBannedRights // default restrictions; nil for a user chat PinnedMessage *Message PinnedMessageUsers []User } // BotAPIChatMember is a resolved chat member for the Bot API getChatMember // method. type BotAPIChatMember struct { User User Member ChannelMember }