Layer 227
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:
AttachMenuPeerTypeBotPm
The bot attachment menu entry is available in private chats with other bots (excluding the bot that
AttachMenuPeerTypeBroadcast
The bot attachment menu entry is available in channels
AttachMenuPeerTypeChat
The bot attachment menu entry is available in groups and supergroups
AttachMenuPeerTypePm
The bot attachment menu entry is available in private chats with other users (not bots)
AttachMenuPeerTypeSameBotPm
The bot attachment menu entry is available in the chat with the bot that offers it
Gogram Example
// AttachMenuPeerType is an interface type // You can use any of the following constructors: var _ tg.AttachMenuPeerType = &tg.AttachMenuPeerTypeBotPm{} var _ tg.AttachMenuPeerType = &tg.AttachMenuPeerTypeBroadcast{} var _ tg.AttachMenuPeerType = &tg.AttachMenuPeerTypeChat{} var _ tg.AttachMenuPeerType = &tg.AttachMenuPeerTypePm{} var _ tg.AttachMenuPeerType = &tg.AttachMenuPeerTypeSameBotPm{}