def command_real_traders_refresh(_, update): if TelegramApp._is_valid_user(update): result = "Refresh" try: InterfaceBot.set_command_real_traders_refresh() update.message.reply_text(result + " successful") except Exception as e: update.message.reply_text(f"{result} failure: {e}")
def command_real_traders_refresh(_, update): if TelegramApp._is_valid_user(update): result = "Refresh" try: InterfaceBot.set_command_real_traders_refresh() TelegramApp._send_message(update, f"`{result} successful`") except Exception as e: TelegramApp._send_message(update, f"`{result} failure: {e}`")