patch 4c771fc4851d84b5ae451e1cd9280223c3c5b014 Author: E. Bosch Date: Thu Jun 1 19:55:14 CEST 2023 * telegram: Fix media contact attributes diff -rN -u old-irgramd/telegram.py new-irgramd/telegram.py --- old-irgramd/telegram.py 2024-11-22 20:41:28.688047914 +0100 +++ new-irgramd/telegram.py 2024-11-22 20:41:28.688047914 +0100 @@ -646,12 +646,12 @@ media_type = 'contact' caption = '' to_download = False - if message.media.contact.first_name: - media_url_or_data += message.media.contact.first_name + ' ' - if message.media.contact.last_name: - media_url_or_data += message.media.contact.last_name + ' ' - if message.media.contact.phone_number: - media_url_or_data += message.media.contact.phone_number + if message.media.first_name: + media_url_or_data += message.media.first_name + ' ' + if message.media.last_name: + media_url_or_data += message.media.last_name + ' ' + if message.media.phone_number: + media_url_or_data += message.media.phone_number elif message.game: media_type = 'game'