messages.SendMedia#
- class pyrogram.raw.functions.messages.SendMedia#
Send a media.
- Details:
Layer:
158
ID:
7547C966
- Parameters:
peer (
InputPeer
) – Destination.media (
InputMedia
) – Attached media.message (
str
) – Caption.random_id (
int
64-bit
) – Random ID to avoid resending the same message.silent (
bool
, optional) – Send message silently (no notification should be triggered).background (
bool
, optional) – Send message in background.clear_draft (
bool
, optional) – Clear the draft.noforwards (
bool
, optional) – Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled.update_stickersets_order (
bool
, optional) – Whether to move used stickersets to top on this flag.reply_to_msg_id (
int
32-bit
, optional) – N/Atop_msg_id (
int
32-bit
, optional) – N/Areply_markup (
ReplyMarkup
, optional) – Reply markup for bot keyboards.entities (List of
MessageEntity
, optional) – Message entities for styled text.schedule_date (
int
32-bit
, optional) – Scheduled message date for scheduled messages.send_as (
InputPeer
, optional) – Send this message as the specified peer.
- Returns: