add Message.is_sticker()

This commit is contained in:
adbenitez
2021-04-10 02:02:10 -04:00
parent b9beaee7d4
commit d1237c9f8d

View File

@@ -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