diff options
author | clarkzjw <[email protected]> | 2023-02-21 16:46:11 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-21 16:46:11 -0800 |
commit | 22fb6a357f1b6b91f04a180604e2f992280ee661 (patch) | |
tree | 0ed80d12ac41475138077891ffea0bb78fe392cb /bot/__init__.py | |
parent | 0ce8037dcb01745edc9930b09e72bf7ea4dfcf4e (diff) | |
download | swarm2fediverse-feature/django.tar.gz |
add django app templatefeature/django
Diffstat (limited to 'bot/__init__.py')
-rw-r--r-- | bot/__init__.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/bot/__init__.py b/bot/__init__.py index 5e3c341..e69de29 100644 --- a/bot/__init__.py +++ b/bot/__init__.py | |||
@@ -1,13 +0,0 @@ | |||
1 | from telegram import __version__ as TG_VER | ||
2 | |||
3 | try: | ||
4 | from telegram import __version_info__ | ||
5 | except ImportError: | ||
6 | __version_info__ = (0, 0, 0, 0, 0) # type: ignore[assignment] | ||
7 | |||
8 | if __version_info__ < (20, 0, 0, "alpha", 1): | ||
9 | raise RuntimeError( | ||
10 | f"This example is not compatible with your current PTB version {TG_VER}. To view the " | ||
11 | f"{TG_VER} version of this example, " | ||
12 | f"visit https://docs.python-telegram-bot.org/en/v{TG_VER}/examples.html" | ||
13 | ) | ||