zarox commited on
Commit
5c716b4
·
verified ·
1 Parent(s): b16d41d
Files changed (1) hide show
  1. app.py +2 -2
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 SendMedia
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(SendMedia(
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'