def coin_buttons(): buttons = list() for coin in config["used_coins"]: buttons.append(KeyboardButton(coin)) return buttons # Check order state and send message if order closed