Add dc_msg_force_plaintext() API for bots (#2847)

This will allow implementing a special command for download bot to request that it sends back the downloaded file unencrypted.
This commit is contained in:
link2xt
2021-12-09 13:51:21 +03:00
committed by GitHub
parent 21e9206a77
commit 1d0f6aad95
7 changed files with 32 additions and 4 deletions

View File

@@ -225,6 +225,10 @@ class Message(object):
"""Quote setter"""
lib.dc_msg_set_quote(self._dc_msg, quoted_message._dc_msg)
def force_plaintext(self) -> None:
"""Force the message to be sent in plain text."""
lib.dc_msg_force_plaintext(self._dc_msg)
def get_mime_headers(self):
""" return mime-header object for an incoming message.