diff options
-rw-r--r-- | main.py | 8 | ||||
-rw-r--r-- | strings.py | 12 |
2 files changed, 1 insertions, 19 deletions
@@ -1,17 +1,11 @@ #!/usr/bin/env python3 -import logging, re, datetime, json, subprocess, os +import logging -from typing import Optional from argparse import ArgumentParser -from html import escape import socket -from pprint import pprint -from time import sleep -from strings import lang as _ from telegram import ( Update, ParseMode, - KeyboardButton, ReplyKeyboardMarkup ) from telegram.ext import ( diff --git a/strings.py b/strings.py deleted file mode 100644 index 80b7dac..0000000 --- a/strings.py +++ /dev/null @@ -1,12 +0,0 @@ -__strings = { - 'Включать': 'Status', - 'generation': 'Generation', - 'gs': 'GS', - 'ri': 'RI', - 'errors': 'Errors' -} - - -def lang(key): - global __strings - return __strings[key] if key in __strings else f'{{{key}}}' |