Layer 220
InputPeer
Abstract type representing one of 7 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.InputPeer interface.
Use any of the following constructors:
InputPeerUser
Defines a user for further interaction.
InputPeerEmpty
An empty constructor, no user or chat is defined.
InputPeerUserFromMessage
Defines a min user that was seen in a certain message of a certain chat.
InputPeerChannelFromMessage
Defines a min channel that was seen in a certain message of a certain chat.
InputPeerChannel
Defines a channel for further interaction.
InputPeerChat
Defines a chat for further interaction.
InputPeerSelf
Defines the current user.
Gogram Example
// InputPeer is an interface type // You can use any of the following constructors: var _ tg.InputPeer = &tg.InputPeerUser{} var _ tg.InputPeer = &tg.InputPeerEmpty{} var _ tg.InputPeer = &tg.InputPeerUserFromMessage{} var _ tg.InputPeer = &tg.InputPeerChannelFromMessage{} var _ tg.InputPeer = &tg.InputPeerChannel{} // ... and 2 more constructors