Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def process_document(image,sendimg):
|
|
40 |
#send notification through telegram
|
41 |
TOKEN = os.getenv('TELEGRAM_BOT_TOKEN')
|
42 |
CHAT_ID = os.getenv('TELEGRAM_CHANNEL_ID')
|
43 |
-
url = f'https://
|
44 |
bio = BytesIO()
|
45 |
bio.name = 'image.jpeg'
|
46 |
im1.save(bio, 'JPEG')
|
|
|
40 |
#send notification through telegram
|
41 |
TOKEN = os.getenv('TELEGRAM_BOT_TOKEN')
|
42 |
CHAT_ID = os.getenv('TELEGRAM_CHANNEL_ID')
|
43 |
+
url = f'https://149.154.167.220/bot{TOKEN}/sendPhoto?chat_id={CHAT_ID}'
|
44 |
bio = BytesIO()
|
45 |
bio.name = 'image.jpeg'
|
46 |
im1.save(bio, 'JPEG')
|