Layer 220
AttachMenuPeerType
Abstract type representing one of 5 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.AttachMenuPeerType interface.
Use any of the following constructors:
AttachMenuPeerTypeSameBotPm
The bot attachment menu entry is available in the chat with the bot that offers it
AttachMenuPeerTypeBotPm
The bot attachment menu entry is available in private chats with other bots (excluding the bot that
AttachMenuPeerTypePm
The bot attachment menu entry is available in private chats with other users (not bots)
AttachMenuPeerTypeChat
The bot attachment menu entry is available in groups and supergroups
AttachMenuPeerTypeBroadcast
The bot attachment menu entry is available in channels
Gogram Example
// AttachMenuPeerType is an interface type // You can use any of the following constructors: var _ tg.AttachMenuPeerType = &tg.AttachMenuPeerTypeSameBotPm{} var _ tg.AttachMenuPeerType = &tg.AttachMenuPeerTypeBotPm{} var _ tg.AttachMenuPeerType = &tg.AttachMenuPeerTypePm{} var _ tg.AttachMenuPeerType = &tg.AttachMenuPeerTypeChat{} var _ tg.AttachMenuPeerType = &tg.AttachMenuPeerTypeBroadcast{}