patch 9c530196db77dfde94d09e8dfbee848665084731 Author: Lucas de Sena Date: Sat Jul 25 00:27:23 CEST 2026 * Merge pull request #16 on github from phillbush/show-reactions add "show_reactions" option Set it to false if you do not want to be annoyed with reactions and emojis. diff -rN -u old-irgramd/irgramd new-irgramd/irgramd --- old-irgramd/irgramd 2026-07-25 09:34:15.533373168 +0200 +++ new-irgramd/irgramd 2026-07-25 09:34:15.537373169 +0200 @@ -104,6 +104,7 @@ tornado.options.define('phone', default=None, metavar='PHONE_NUMBER', help='Phone number associated with the Telegram account to receive the authorization codes if necessary') tornado.options.define('quote_length', default=50, metavar='LENGTH', help='Max length of the text quoted in replies and reactions, if longer is truncated') tornado.options.define('service_user', default='TelegramServ', metavar='SERVICE_NICK', help='Nick of the service/control user, must be a nick not used by a real Telegram user') + tornado.options.define('show_reactions', default=True, help='Show reactions to messages') tornado.options.define('test', default=False, help='Connect to Telegram test environment') tornado.options.define('test_datacenter', default=2, metavar='DATACENTER_NUMBER', help='Datacenter to connect to Telegram test environment') tornado.options.define('test_host', default=None, metavar='HOST_IP', help='Host to connect to Telegram test environment (default: use a internal table depending on datacenter)') diff -rN -u old-irgramd/telegram.py new-irgramd/telegram.py --- old-irgramd/telegram.py 2026-07-25 09:34:15.537373169 +0200 +++ new-irgramd/telegram.py 2026-07-25 09:34:15.537373169 +0200 @@ -57,6 +57,7 @@ self.test_port = settings['test_port'] self.ask_code = settings['ask_code'] self.quote_len = settings['quote_length'] + self.show_react = settings['show_reactions'] self.hist_fmt = settings['hist_timestamp_format'] self.timezone = settings['timezone'] self.geo_url = settings['geo_url'] @@ -597,6 +598,8 @@ # Reactions else: + if not self.show_react: + return if reaction: if self.last_reaction == reaction.date: return @@ -612,6 +615,8 @@ self.to_volatile_cache(self.prev_id, id, text, user, chan, current_date()) async def handle_next_reaction(self, event): + if not self.show_react: + return self.logger.debug('Handling Telegram Next Reaction (2nd, 3rd, ...): %s', pretty(event)) reactions = event.reactions.recent_reactions