test and fix #956

This commit is contained in:
holger krekel
2019-12-05 01:40:57 +01:00
parent f91474c2f8
commit 7f117574ab
2 changed files with 24 additions and 2 deletions

View File

@@ -58,8 +58,6 @@ class Message(object):
def set_text(self, text):
"""set text of this message. """
assert self.id > 0, "message not prepared"
assert self.is_out_preparing()
lib.dc_msg_set_text(self._dc_msg, as_dc_charpointer(text))
@props.with_doc