Skip to main content

draftMessage

Represents a message draft.

type tg.DraftMessage struct { /* ... */ }

Implements DraftMessage.

Fields

NameTypeRequiredDescription
NoWebpageboolWhether no webpage preview will be generated
InvertMediaboolIf set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
ReplyToInputReplyToClassIf set, indicates that the message should be sent in reply to the specified message or story.
MessagestringyesThe draft
Entities[]MessageEntityClassMessage entities for styled text.
MediaInputMediaClassMedia.
DateintyesDate of last update of the draft.
Effectint64A message effect that should be played as specified here ».
SuggestedPostSuggestedPostUsed to suggest a post to a channel, see here » for more info on the full flow.
RichMessageRichMessageRichMessage field of DraftMessage.

References