class pyrogram.raw.functions.messages.SendMedia

Send a media.

  • Layer: 126

  • ID: 0x3491eba9

  • 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.

  • reply_to_msg_id (int 32-bit, optional) – Message ID to which this message should reply to.

  • reply_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.


Updates – Object which is perceived by the client without a call on its part when an event occurs.