mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
api(deltachat-rpc-client): add Chat.send_file()
This commit is contained in:
@@ -142,6 +142,10 @@ class Chat:
|
|||||||
msg_id = self._rpc.misc_send_text_message(self.account.id, self.id, text)
|
msg_id = self._rpc.misc_send_text_message(self.account.id, self.id, text)
|
||||||
return Message(self.account, msg_id)
|
return Message(self.account, msg_id)
|
||||||
|
|
||||||
|
def send_file(self, path):
|
||||||
|
"""Send a file and return the resulting Message instance."""
|
||||||
|
return self.send_message(file=path)
|
||||||
|
|
||||||
def send_videochat_invitation(self) -> Message:
|
def send_videochat_invitation(self) -> Message:
|
||||||
"""Send a videochat invitation and return the resulting Message instance."""
|
"""Send a videochat invitation and return the resulting Message instance."""
|
||||||
msg_id = self._rpc.send_videochat_invitation(self.account.id, self.id)
|
msg_id = self._rpc.send_videochat_invitation(self.account.id, self.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user