messages.SendMedia
- class pyrogram.raw.functions.messages.SendMedia
Send a media
- Details:
Layer:
196ID:
7852834E
- Parameters:
peer (
InputPeer) – Destinationmedia (
InputMedia) – Attached mediamessage (
str) – Captionrandom_id (
int64-bit) – Random ID to avoid resending the same messagesilent (
bool, optional) – Send message silently (no notification should be triggered)background (
bool, optional) – Send message in backgroundclear_draft (
bool, optional) – Clear the draftnoforwards (
bool, optional) – Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabledupdate_stickersets_order (
bool, optional) – Whether to move used stickersets to top, see here for more info on this flag »invert_media (
bool, optional) – If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.allow_paid_floodskip (
bool, optional) – N/Areply_to (
InputReplyTo, optional) – If set, indicates that the message should be sent in reply to the specified message or story.reply_markup (
ReplyMarkup, optional) – Reply markup for bot keyboardsentities (List of
MessageEntity, optional) – Message entities for styled textschedule_date (
int32-bit, optional) – Scheduled message date for scheduled messagessend_as (
InputPeer, optional) – Send this message as the specified peerquick_reply_shortcut (
InputQuickReplyShortcut, optional)effect (
int64-bit, optional)
- Returns: