peyk.platforms.rubika.methods.upload_and_send_file¶
- async peyk.platforms.rubika.methods.upload_and_send_file(self, chat_id: str, file_bytes: bytes, *, file_type: str = FileTypeEnum.FILE, filename: str = 'file', content_type: str = 'application/octet-stream', text: str | None = None, **send_kwargs: object) Message[source]¶
Performs the upload and send file operation for the Rubika client.
- Parameters:
chat_id – Identifier of the target chat.
file_bytes – Value used by this operation.
file_type – Value used by this operation.
filename – Value used by this operation.
content_type – Value used by this operation.
text – Text content supplied to the operation.
- Returns:
Result produced by the Rubika operation.