MessageDraftPiece
A draft piece is an object that describes a chunk of a message draft. It can be either a plain string, or an object holding text and entities.
Optionally, a draft identifier can be included. It determines the draft that this piece will be a part of of. In most cases, this option can be skipped in order to let the plugin pick the draft identifiers automatically.
Type
ts
string | {
draft_id?: number; text: string; entities?: MessageEntity[]
}