Update Telethon

This commit is contained in:
Tulir Asokan
2022-12-30 20:17:25 +02:00
parent 989dc32481
commit cb22615bb5
6 changed files with 25 additions and 8 deletions
+10
View File
@@ -378,6 +378,16 @@ class Puppet(DBPuppet, BasePuppet):
) -> bool:
if self.disable_updates:
return False
if (
isinstance(photo, UserProfilePhoto)
and photo.personal
and not self.config["bridge.allow_contact_info"]
):
self.log.trace(
"Dropping user avatar as it's personal "
"and contact info is disabled in bridge config"
)
return False
if photo is None or isinstance(photo, (UserProfilePhotoEmpty, ChatPhotoEmpty)):
photo_id = ""