Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -119,7 +119,8 @@ async def call_telegram_api(input_data, text):
|
|
119 |
"telegramUrl": input_data.telegramUrlBot
|
120 |
}
|
121 |
async with aiohttp.ClientSession() as session:
|
122 |
-
async with session.post(input_data.telegramUrlPost, json=payload) as response
|
|
|
123 |
|
124 |
def generate_input_text(input_data):
|
125 |
if input_data.instruction.startswith("http"):
|
|
|
119 |
"telegramUrl": input_data.telegramUrlBot
|
120 |
}
|
121 |
async with aiohttp.ClientSession() as session:
|
122 |
+
async with session.post(input_data.telegramUrlPost, json=payload) as response:
|
123 |
+
response_text = await response.text()
|
124 |
|
125 |
def generate_input_text(input_data):
|
126 |
if input_data.instruction.startswith("http"):
|