From d1237c9f8d3b76f326dde2884c12b087fcefd4aa Mon Sep 17 00:00:00 2001 From: adbenitez Date: Sat, 10 Apr 2021 02:02:10 -0400 Subject: [PATCH] add Message.is_sticker() --- python/src/deltachat/message.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/src/deltachat/message.py b/python/src/deltachat/message.py index 4587f0dd4..c3b340051 100644 --- a/python/src/deltachat/message.py +++ b/python/src/deltachat/message.py @@ -343,6 +343,10 @@ class Message(object): """ return True if it's a gif message. """ return self._view_type == const.DC_MSG_GIF + def is_sticker(self): + """ return True if it's a sticker message. """ + return self._view_type == const.DC_MSG_STICKER + def is_audio(self): """ return True if it's an audio message. """ return self._view_type == const.DC_MSG_AUDIO