peyk.platforms.rubika.methods.send_contact

async peyk.platforms.rubika.methods.send_contact(self, chat_id: str, first_name: str, last_name: str, phone_number: str, *, 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 contact through the Rubika API.

Parameters:
  • chat_id – Identifier of the target chat.

  • first_name – Value used by this operation.

  • last_name – Value used by this operation.

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