Skip to main content

draftMessage

Represents a message draft.

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

Implements DraftMessage.

Fields​

NameTypeRequiredDescription
NoWebpagebool—Whether no webpage preview will be generated
InvertMediabool—If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
ReplyToInputReplyToClass—If set, indicates that the message should be sent in reply to the specified message or story.
MessagestringyesThe draft
Entities[]MessageEntityClass—Message entities for styled text.
MediaInputMediaClass—Media.
DateintyesDate of last update of the draft.
Effectint64—A message effect that should be played as specified here ».
SuggestedPostSuggestedPost—Used to suggest a post to a channel, see here » for more info on the full flow.
RichMessageRichMessage—RichMessage field of DraftMessage.

References​