kopia lustrzana https://github.com/bellingcat/auto-archiver
better handling of telethon data display
rodzic
719645fc2d
commit
2a773a25e8
|
@ -146,8 +146,10 @@ class TelethonArchiver(Archiver):
|
||||||
logger.debug(f"Empty media found, skipping {str(mp)=}")
|
logger.debug(f"Empty media found, skipping {str(mp)=}")
|
||||||
continue
|
continue
|
||||||
result.add_media(Media(filename))
|
result.add_media(Media(filename))
|
||||||
|
|
||||||
result.set_content(str(post)).set_title(title).set_timestamp(post.date)
|
result.set_title(title).set_timestamp(post.date).set("api_data", post.to_dict())
|
||||||
|
if post.message != title:
|
||||||
|
result.set_content(post.message)
|
||||||
return result.success("telethon")
|
return result.success("telethon")
|
||||||
|
|
||||||
def _get_media_posts_in_group(self, chat, original_post, max_amp=10):
|
def _get_media_posts_in_group(self, chat, original_post, max_amp=10):
|
||||||
|
|
Ładowanie…
Reference in New Issue