aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-21 23:39:21 -0800
committerclarkzjw <[email protected]>2023-02-21 23:39:21 -0800
commit8e83ba6c232172956f4d399e7bfdbe4e832e0536 (patch)
treea4b45633455692257149ed498f9b5cc5ec548ad7 /config.py
parent3a76618d0f46c7e28641b74a869544661c504e21 (diff)
downloadswarm2fediverse-8e83ba6c232172956f4d399e7bfdbe4e832e0536.tar.gz
optimize imports
Diffstat (limited to 'config.py')
-rw-r--r--config.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/config.py b/config.py
index b690401..ea50a77 100644
--- a/config.py
+++ b/config.py
@@ -1,19 +1,5 @@
1# https://docs.python.org/3/library/configparser.html 1# https://docs.python.org/3/library/configparser.html
2 2
3from telegram import __version__ as TG_VER
4
5try:
6 from telegram import __version_info__
7except ImportError:
8 __version_info__ = (0, 0, 0, 0, 0) # type: ignore[assignment]
9
10if __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
17from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardMarkup, KeyboardButton 3from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardMarkup, KeyboardButton
18from prompt.string import * 4from prompt.string import *
19from typing import TypedDict 5from typing import TypedDict
Powered by cgit v1.2.3 (git 2.41.0)