diff options
author | clarkzjw <[email protected]> | 2023-02-21 23:39:21 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-21 23:39:21 -0800 |
commit | 8e83ba6c232172956f4d399e7bfdbe4e832e0536 (patch) | |
tree | a4b45633455692257149ed498f9b5cc5ec548ad7 /config.py | |
parent | 3a76618d0f46c7e28641b74a869544661c504e21 (diff) | |
download | swarm2fediverse-8e83ba6c232172956f4d399e7bfdbe4e832e0536.tar.gz |
optimize imports
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 |