Telegram – Check for either key in python dictionary
I have a the following code to get some messages from a telegram bot with python: useful_messages = [i["message"] for i in response["result"] if i["message"]["from"]["id"] == int(chat_id) and i["message"]["date"] > last_time] Traceback (most recent call last): File "<stdin>", line 1,…