peyk.platforms.rubika.methods.send_message

async peyk.platforms.rubika.methods.send_message(self, chat_id: str, text: str, *, metadata: Metadata | Dict[str, object] | None = None, chat_keypad: Keypad | Dict[str, object] | None = None, inline_keypad: Keypad | Dict[str, object] | None = None, chat_keypad_type: str | None = None, reply_to_message_id: str | None = None, disable_notification: bool | None = None) Message[source]

Sends message through the Rubika API.

Parameters:
  • chat_id – Identifier of the target chat.

  • text – Text content supplied to the operation.

  • metadata – Value used by this operation.

  • chat_keypad – Value used by this operation.

  • inline_keypad – Value used by this operation.

  • chat_keypad_type – Value used by this operation.

  • reply_to_message_id – Value used by this operation.

  • disable_notification – Value used by this operation.

Returns:

Result produced by the Rubika operation.