added file_upload
Browse files- App/Chat/utils/PoeBot.py +4 -4
App/Chat/utils/PoeBot.py
CHANGED
@@ -19,13 +19,13 @@ async def SendMessage(req: BotRequest):
|
|
19 |
try:
|
20 |
if CHAT_CODE == "":
|
21 |
for chunk in client.send_message(
|
22 |
-
req.bot, req.message, chatCode="2rx4w5jt6zf96tn7dr1"
|
23 |
):
|
24 |
pass
|
25 |
CHAT_CODE = chunk["chatCode"]
|
26 |
else:
|
27 |
for chunk in client.send_message(
|
28 |
-
req.bot, req.message, chatCode=CHAT_CODE
|
29 |
):
|
30 |
pass
|
31 |
|
@@ -46,13 +46,13 @@ async def GenerateImage(req: BotRequest):
|
|
46 |
try:
|
47 |
if GEN_CODE == "":
|
48 |
for chunk in client.send_message(
|
49 |
-
req.bot, req.message, chatCode="2rx4w5jt6zf96tn7dr1"
|
50 |
):
|
51 |
pass
|
52 |
GEN_CODE = chunk["chatCode"]
|
53 |
else:
|
54 |
for chunk in client.send_message(
|
55 |
-
req.bot, req.message, chatCode=GEN_CODE
|
56 |
):
|
57 |
pass
|
58 |
|
|
|
19 |
try:
|
20 |
if CHAT_CODE == "":
|
21 |
for chunk in client.send_message(
|
22 |
+
req.bot, req.message, chatCode="2rx4w5jt6zf96tn7dr1", file_path=req.file_upload
|
23 |
):
|
24 |
pass
|
25 |
CHAT_CODE = chunk["chatCode"]
|
26 |
else:
|
27 |
for chunk in client.send_message(
|
28 |
+
req.bot, req.message, chatCode=CHAT_CODE, file_path=req.file_upload
|
29 |
):
|
30 |
pass
|
31 |
|
|
|
46 |
try:
|
47 |
if GEN_CODE == "":
|
48 |
for chunk in client.send_message(
|
49 |
+
req.bot, req.message, chatCode="2rx4w5jt6zf96tn7dr1", file_path=req.file_upload
|
50 |
):
|
51 |
pass
|
52 |
GEN_CODE = chunk["chatCode"]
|
53 |
else:
|
54 |
for chunk in client.send_message(
|
55 |
+
req.bot, req.message, chatCode=GEN_CODE, file_path=req.file_upload
|
56 |
):
|
57 |
pass
|
58 |
|