Raw.messages.SendMedia
Send a media
messages.sendMedia#7852834e flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut effect:flags.18?long = Updates;
export namespace Raw {
export namespace messages {
export class SendMedia {
constructor(params: {
silent?: boolean;
background?: boolean;
clearDraft?: boolean;
noforwards?: boolean;
updateStickersetsOrder?: boolean;
invertMedia?: boolean;
peer: Raw.TypeInputPeer;
replyTo?: Raw.TypeInputReplyTo;
media: Raw.TypeInputMedia;
message: string;
randomId: bigint;
replyMarkup?: Raw.TypeReplyMarkup;
entities?: Array<Raw.TypeMessageEntity>;
scheduleDate?: number;
sendAs?: Raw.TypeInputPeer;
quickReplyShortcut?: Raw.TypeInputQuickReplyShortcut;
effect?: bigint;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x7852834e
Property
silent
: boolean or undefinedSend message silently (no notification should be triggered)
background
: boolean or undefinedSend message in background
clearDraft
: boolean or undefinedClear the draft
noforwards
: boolean or undefinedOnly for bots, disallows forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled
updateStickersetsOrder
: boolean or undefinedWhether to move used stickersets to top, see here for more info on this flag
invertMedia
: boolean or undefinedIf set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
peer
: Raw.TypeInputPeerDestination
replyTo
: Raw.TypeInputReplyTo or undefinedIf set, indicates that the message should be sent in reply to the specified message or story.
media
: Raw.TypeInputMediaAttached media
message
: stringCaption
randomId
: bigintRandom id to avoid resending the same message
replyMarkup
: Raw.TypeReplyMarkup or undefinedReply markup for bot keyboards
entities
: Array of Raw.TypeMessageEntity or undefinedMessage entities for styled text
scheduleDate
: number or undefinedScheduled message date for scheduled messages
sendAs
: Raw.TypeInputPeer or undefinedSend this message as the specified peer
quickReplyShortcut
: Raw.TypeInputQuickReplyShortcut or undefinedAdd the message to the specified quick reply shortcut, instead.
effect
: bigint or undefinedSpecifies a message effect to use for the message.