Layer 220
UpdateDraftMessage
Notifies a change of a message draft.
constructor
updateDraftMessage#edfc111e flags:# peer:Peer top_msg_id:flags.0?int saved_peer_id:flags.1?Peer draft:DraftMessage = Update;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Peer | Peer | The peer to which the draft is associated |
| TopMsgId | flags.0?int | ID of the forum topic to which the draft is associated |
| SavedPeerId | flags.1?Peer | If set, the draft is related to the specified monoforum topic ID. |
| Draft | DraftMessage | The draft |
Returns
UpdateGogram Example
// Creating UpdateDraftMessage constructor obj := &tg.UpdateDraftMessage{ Peer: &tg.Peer{}, Draft: &tg.DraftMessage{}, // Optional fields: // TopMsgId: 0, // SavedPeerId: &tg.Peer{}, }