diff options
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -1,19 +1,5 @@ | |||
1 | # https://docs.python.org/3/library/configparser.html | 1 | # https://docs.python.org/3/library/configparser.html |
2 | 2 | ||
3 | from telegram import __version__ as TG_VER | ||
4 | |||
5 | try: | ||
6 | from telegram import __version_info__ | ||
7 | except ImportError: | ||
8 | __version_info__ = (0, 0, 0, 0, 0) # type: ignore[assignment] | ||
9 | |||
10 | if __version_info__ < (20, 0, 0, "alpha", 1): | ||
11 | raise RuntimeError( | ||
12 | f"This example is not compatible with your current PTB version {TG_VER}. To view the " | ||
13 | f"{TG_VER} version of this example, " | ||
14 | f"visit https://docs.python-telegram-bot.org/en/v{TG_VER}/examples.html" | ||
15 | ) | ||
16 | |||
17 | from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardMarkup, KeyboardButton | 3 | from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardMarkup, KeyboardButton |
18 | from prompt.string import * | 4 | from prompt.string import * |
19 | from typing import TypedDict | 5 | from typing import TypedDict |