aboutsummaryrefslogtreecommitdiff
blob: 5e3c341dcdc6b2d03f306d3d7acf077c10667f0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
from telegram import __version__ as TG_VER

try:
    from telegram import __version_info__
except ImportError:
    __version_info__ = (0, 0, 0, 0, 0)  # type: ignore[assignment]

if __version_info__ < (20, 0, 0, "alpha", 1):
    raise RuntimeError(
        f"This example is not compatible with your current PTB version {TG_VER}. To view the "
        f"{TG_VER} version of this example, "
        f"visit https://docs.python-telegram-bot.org/en/v{TG_VER}/examples.html"
    )
Powered by cgit v1.2.3 (git 2.41.0)