def build_curr_disabled(chat_id: Union[str, int]) -> str: disabled = sql.get_all_disabled(chat_id) if not disabled: return "Heç bir əmr deaktiv edilmir!" result = "" for cmd in disabled: result += " - `{}`\n".format(escape_markdown(cmd)) return "Aşağıdakı əmrlər hazırda məhduddur:\n{}".format(result)
def build_curr_disabled(chat_id: Union[str, int]) -> str: disabled = sql.get_all_disabled(chat_id) if not disabled: return "No commands are disabled!" result = "" for cmd in disabled: result += " - `{}`\n".format(escape_markdown(cmd)) return "The following commands are currently restricted:\n{}".format( result)