messages.SendMessage#
- class pyrogram.raw.functions.messages.SendMessage#
Sends a message to a chat
- Details:
Layer:
214ID:
FE05DC9A
- Parameters:
peer (
InputPeer) – The destination where the message will be sentmessage (
str) – The messagerandom_id (
int64-bit) – Unique client message ID required to prevent message resendingno_webpage (
bool, optional) – Set this flag to disable generation of the webpage previewsilent (
bool, optional) – Send this message silently (no notifications for the receivers)background (
bool, optional) – Send this message as background messageclear_draft (
bool, optional) – Clear the draft fieldnoforwards (
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) – Bots only: if set, allows sending up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot’s balance.reply_to (
InputReplyTo, optional) – If set, indicates that the message should be sent in reply to the specified message or story. Also used to quote other messages.reply_markup (
ReplyMarkup, optional) – Reply markup for sending bot buttonsentities (List of
MessageEntity, optional) – Message entities for sending 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) – Add the message to the specified quick reply shortcut », instead.effect (
int64-bit, optional) – Specifies a message effect » to use for the message.allow_paid_stars (
int64-bit, optional) – For paid messages », specifies the amount of Telegram Stars the user has agreed to pay in order to send the message.suggested_post (
SuggestedPost, optional)
- Returns: