class pyrogram.raw.functions.messages.SendInlineBotResult#

Send a result obtained using messages.getInlineBotResults.

  • Layer: 158


  • peer (InputPeer) – Destination.

  • random_id (int 64-bit) – Random ID to avoid resending the same query.

  • query_id (int 64-bit) – Query ID from messages.getInlineBotResults.

  • id (str) – Result ID from messages.getInlineBotResults.

  • silent (bool, optional) – Whether to send the message silently (no notification will be triggered on the other client).

  • background (bool, optional) – Whether to send the message in background.

  • clear_draft (bool, optional) – Whether to clear the draft.

  • hide_via (bool, optional) – Whether to hide the via @botname in the resulting message (only for bot usernames encountered in the config).

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

  • top_msg_id (int 32-bit, optional) – This field must contain the topic ID only when replying to messages in forum topics different from the “General” topic (i.e. reply_to_msg_id is set and reply_to_msg_id != topicID and topicID != 1). If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the “General” topic.

  • schedule_date (int 32-bit, optional) – Scheduled message date for scheduled messages.

  • send_as (InputPeer, optional) – Send this message as the specified peer.