prefer a dedicated api

This commit is contained in:
B. Petersen
2026-10-08 01:20:24 +02:00
parent 3cc5b90235
commit 06d46c8a33
3 changed files with 35 additions and 12 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_summary_text(self._dc_msg, width, True))
return from_dc_charpointer(lib.dc_msg_get_summarytext(self._dc_msg, width))
@props.with_doc
def time_sent(self):