Skip to content

Client.sendRichMessage

client method · async

Send rich message to chat; either markdown or html must be provided

Client.sendRichMessage(
  chat_id: int,
  markdown: str = None,
  html: str = None,
  media: list of InputRichMessageMedia = None,
  is_rtl: bool = False,
  detect_automatic_blocks: bool = False,
  clear_draft: bool = False,
  disable_notification: bool = False,
  protect_content: bool = False,
  allow_paid_broadcast: bool = False,
  topic_id: MessageTopic = None,
  quote: InputTextQuote = None,
  reply_to: InputMessageReplyTo = None,
  reply_to_message_id: int = 0,
  receiver_user_id: int = 0,
  callback_query_id: int = 0,
  reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupShowKeyboard | ReplyMarkupForceReply | ReplyMarkupRemoveKeyboard = None
) → Error | Message

Source: pytdbot/methods/methods.py