patch 6c991a90a37dcc5a96906992b5c4df41e7f68991 Author: E. Bosch Date: Thu Aug 29 23:06:59 CEST 2024 * Add trailing commas (and some spacing) diff -rN -u old-irgramd/exclam.py new-irgramd/exclam.py --- old-irgramd/exclam.py 2024-11-22 15:40:50.076701689 +0100 +++ new-irgramd/exclam.py 2024-11-22 15:40:50.080701683 +0100 @@ -59,7 +59,7 @@ ( ' !re ', 'Reply with to a message with on current', - 'channel/chat.' + 'channel/chat.', ) return reply @@ -85,7 +85,7 @@ ( ' !ed ', 'Edit a message with on current channel/chat,', - ' replaces the current message.' + ' replaces the current message.', ) return reply @@ -165,7 +165,7 @@ ' !upl []', 'Upload the file referenced by to current', 'channel/chat, the file must be present in "upload"', - 'irgramd local directory or be an external HTTP/HTTPS URL.' + 'irgramd local directory or be an external HTTP/HTTPS URL.', ) return reply @@ -185,6 +185,6 @@ 'Reply with the upload of to a message with', ' on current channel/chat. The file must be', 'present in "upload" irgramd local directory or be an external', - 'HTTP/HTTPS URL.' + 'HTTP/HTTPS URL.', ) return reply diff -rN -u old-irgramd/service.py new-irgramd/service.py --- old-irgramd/service.py 2024-11-22 15:40:50.076701689 +0100 +++ new-irgramd/service.py 2024-11-22 15:40:50.080701683 +0100 @@ -249,7 +249,7 @@ ( ' mark_read ', 'Mark all messages on (channel or user) as read, this also will', - 'reset the number of mentions to you on .' + 'reset the number of mentions to you on .', ) return reply diff -rN -u old-irgramd/telegram.py new-irgramd/telegram.py --- old-irgramd/telegram.py 2024-11-22 15:40:50.080701683 +0100 +++ new-irgramd/telegram.py 2024-11-22 15:40:50.080701683 +0100 @@ -29,7 +29,7 @@ TEST_IPS = { 1: '149.154.175.10', 2: '149.154.167.40', - 3: '149.154.175.117' + 3: '149.154.175.117', } # Telegram @@ -102,10 +102,10 @@ # Register Telegram callbacks callbacks = ( (self.handle_telegram_message , telethon.events.NewMessage), - (self.handle_raw, telethon.events.Raw), + (self.handle_raw , telethon.events.Raw), (self.handle_telegram_chat_action, telethon.events.ChatAction), (self.handle_telegram_deleted , telethon.events.MessageDeleted), - (self.handle_telegram_edited, telethon.events.MessageEdited), + (self.handle_telegram_edited , telethon.events.MessageEdited), ) for handler, event in callbacks: self.telegram_client.add_event_handler(handler, event) @@ -416,7 +416,7 @@ 'rendered_text': proc_message, 'user': user, 'channel': chan, - 'media': media + 'media': media, } def replace_mentions(self, text, me_nick='', received=True):