aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot.py')
-rw-r--r--bot.py22
1 files changed, 4 insertions, 18 deletions
diff --git a/bot.py b/bot.py
index bf19588..979b025 100644
--- a/bot.py
+++ b/bot.py
@@ -3,25 +3,11 @@ import logging
3import os 3import os
4import traceback 4import traceback
5 5
6from telegram import __version__ as TG_VER
7
8try:
9 from telegram import __version_info__
10except ImportError:
11 __version_info__ = (0, 0, 0, 0, 0) # type: ignore[assignment]
12
13if __version_info__ < (20, 0, 0, "alpha", 1):
14 raise RuntimeError(
15 f"This example is not compatible with your current PTB version {TG_VER}. To view the "
16 f"{TG_VER} version of this example, "
17 f"visit https://docs.python-telegram-bot.org/en/v{TG_VER}/examples.html"
18
19 )
20
21from telegram import ForceReply, Update, File
22from telegram.ext import Application, CommandHandler, ContextTypes, MessageHandler, filters
23from telegram.constants import ParseMode
24from PIL import Image 6from PIL import Image
7from telegram import Update
8from telegram.constants import ParseMode
9from telegram.ext import Application, CommandHandler, ContextTypes, MessageHandler, filters
10
25from square import square_size_padding 11from square import square_size_padding
26 12
27# Enable logging 13# Enable logging
Powered by cgit v1.2.3 (git 2.41.0)