diff --git a/pokemongo_bot/event_handlers/telegram_handler.py b/pokemongo_bot/event_handlers/telegram_handler.py index e28c4b5adf..ba34f54205 100644 --- a/pokemongo_bot/event_handlers/telegram_handler.py +++ b/pokemongo_bot/event_handlers/telegram_handler.py @@ -355,7 +355,7 @@ def handle_event(self, event, sender, level, formatted_msg, data): elif event == 'pokemon_caught': msg = "Caught {} CP: {}, IV: {}".format(data["pokemon"], data["cp"], data["iv"]) elif event == 'egg_hatched': - msg = "Egg hatched with a {} CP: {}, IV: {}".format(data["pokemon"], data["cp"], data["iv"]) + msg = "Egg hatched with a {} CP: {}, IV: {} {}".format(data["name"], data["cp"], data["iv_ads"], data["iv_pct"]) elif event == 'bot_sleep': msg = "I am too tired, I will take a sleep till {}.".format(data["wake"]) elif event == 'catch_limit': @@ -406,10 +406,7 @@ def handle_event(self, event, sender, level, formatted_msg, data): else: return elif event == 'egg_hatched': - try: - msg = "Egg hatched with a {} CP: {}, IV: {}".format(data["pokemon"], data["cp"], data["iv"]) - except KeyError: - return + msg = "Egg hatched with a {} CP: {}, IV: {} {}".format(data["name"], data["cp"], data["iv_ads"], data["iv_pct"]) elif event == 'bot_sleep': msg = "I am too tired, I will take a sleep till {}.".format(data["wake"]) elif event == 'catch_limit':