Spaces:
Running
Running
UPDATE
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from fusion import Fusion
|
|
8 |
|
9 |
from telethon import TelegramClient, events, Button
|
10 |
|
11 |
-
from telethon.tl.functions.messages import
|
12 |
from telethon.tl.types import InputMediaUploadedDocument
|
13 |
|
14 |
API_ID = os.environ.get("API_ID")
|
@@ -154,7 +154,7 @@ async def send_audio(chat, audio):
|
|
154 |
)
|
155 |
|
156 |
# Send the audio file as music
|
157 |
-
await client(
|
158 |
peer=chat,
|
159 |
media=media,
|
160 |
message='Optional caption for the audio'
|
|
|
8 |
|
9 |
from telethon import TelegramClient, events, Button
|
10 |
|
11 |
+
from telethon.tl.functions.messages import SendMediaRequest
|
12 |
from telethon.tl.types import InputMediaUploadedDocument
|
13 |
|
14 |
API_ID = os.environ.get("API_ID")
|
|
|
154 |
)
|
155 |
|
156 |
# Send the audio file as music
|
157 |
+
await client(SendMediaRequest(
|
158 |
peer=chat,
|
159 |
media=media,
|
160 |
message='Optional caption for the audio'
|