Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. for content, content_type in ((self.text, ContentType.TEXT),
  2.                               (self.audio, ContentType.AUDIO),
  3.                               (self.animation, ContentType.ANIMATION),
  4.                               (self.document, ContentType.DOCUMENT),
  5.                               (self.game, ContentType.GAME),
  6.                               (self.photo, ContentType.PHOTO),
  7.                               (self.sticker, ContentType.STICKER)):
  8.     if content:
  9.         return content_type
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement