Layer 220
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

Update

Gogram Example

// Creating UpdateDraftMessage constructor
obj := &tg.UpdateDraftMessage{
    Peer: &tg.Peer{},
    Draft: &tg.DraftMessage{},

    // Optional fields:
    // TopMsgId: 0,
    // SavedPeerId: &tg.Peer{},
}