Layer 227
SendMessageAction
Abstract type representing one of 21 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.SendMessageAction interface.
Use any of the following constructors:
InputSendMessageRichMessageDraftAction
Typing indicator emitted while the user is drafting a rich message.
SendMessageCancelAction
Invalidate all previous action updates. E. g. when user deletes entered text or aborts a video upload
SendMessageChooseContactAction
User is selecting a contact to share.
SendMessageChooseStickerAction
User is choosing a sticker
SendMessageEmojiInteraction
User has clicked on an animated emoji triggering a reaction, click here for more info.
SendMessageEmojiInteractionSeen
User is watching an animated emoji reaction triggered by another user, click here for more info.
SendMessageGamePlayAction
User is playing a game
SendMessageGeoLocationAction
User is selecting a location to share.
SendMessageHistoryImportAction
Chat history is being imported
SendMessageRecordAudioAction
User is recording a voice message.
SendMessageRecordRoundAction
User is recording a round video to share
SendMessageRecordVideoAction
User is recording a video.
SendMessageRichMessageDraftAction
Server-side typing indicator broadcast while a peer is drafting a rich message.
SendMessageTextDraftAction
Used by bots to implement live message streaming.
SendMessageTypingAction
User is typing.
SendMessageUploadAudioAction
User is uploading a voice message.
SendMessageUploadDocumentAction
User is uploading a file.
SendMessageUploadPhotoAction
User is uploading a photo.
SendMessageUploadRoundAction
User is uploading a round video
SendMessageUploadVideoAction
User is uploading a video.
SpeakingInGroupCallAction
User is currently speaking in the group call
Gogram Example
// SendMessageAction is an interface type // You can use any of the following constructors: var _ tg.SendMessageAction = &tg.InputSendMessageRichMessageDraftAction{} var _ tg.SendMessageAction = &tg.SendMessageCancelAction{} var _ tg.SendMessageAction = &tg.SendMessageChooseContactAction{} var _ tg.SendMessageAction = &tg.SendMessageChooseStickerAction{} var _ tg.SendMessageAction = &tg.SendMessageEmojiInteraction{} // ... and 16 more constructors