Layer 220
Chat
Abstract type representing one of 5 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.Chat interface.
Use any of the following constructors:
ChatEmpty
Empty constructor, group doesn't exist
Chat
Info about a group.
ChatForbidden
A group to which the user has no access. E. g., because the user was kicked from the group.
Channel
Channel/supergroup info
ChannelForbidden
Indicates a channel/supergroup we can't access because we were banned, or for some other reason.
Gogram Example
// Chat is an interface type // You can use any of the following constructors: var _ tg.Chat = &tg.ChatEmpty{} var _ tg.Chat = &tg.Chat{} var _ tg.Chat = &tg.ChatForbidden{} var _ tg.Chat = &tg.Channel{} var _ tg.Chat = &tg.ChannelForbidden{}