diff --git a/tgchannel2toot.py b/tgchannel2toot.py index b9463d5..56c040f 100644 --- a/tgchannel2toot.py +++ b/tgchannel2toot.py @@ -33,7 +33,7 @@ def get_text_and_media(message): """ text = " " media = None - if hasattr(message, "media"): + if hasattr(message, "media") and message.media: text = message.caption media = message.download() elif hasattr(message, "text"):