api: new dc_msg_get_summarytext_without_prefix()

This commit is contained in:
B. Petersen
2026-10-08 01:20:00 +02:00
parent 0bee156449
commit 3cc5b90235
4 changed files with 68 additions and 23 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ class Message:
def get_summarytext(self, width: int) -> str:
"""Get a message summary as a single line of text. Typically used for notifications."""
return from_dc_charpointer(lib.dc_msg_get_summarytext(self._dc_msg, width))
return from_dc_charpointer(lib.dc_msg_get_summary_text(self._dc_msg, width, True))
@props.with_doc
def time_sent(self):