Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pairs = (
- (self.text, ContentType.TEXT),
- (self.audio, ContentType.AUDIO),
- (self.animation, ContentType.ANIMATION),
- (self.document, ContentType.DOCUMENT),
- (self.game, ContentType.GAME),
- (self.photo, ContentType.PHOTO),
- (self.sticker, ContentType.STICKER)
- )
- return next(i[1] for i in pairs if i[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement