randydev commited on
Commit
7428198
·
verified ·
1 Parent(s): a3063e5

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
main.py CHANGED
@@ -54,11 +54,10 @@ async def welcome_start(client: Client, message: Message):
54
  async def callback_button(client: Client, cb: CallbackQuery):
55
  try:
56
  data = cb.data
57
- user_id = cb.from_user.id
58
  query = link_storage.get(data)
59
  if query:
60
  response = await Tiktok.download(TIKTOK_WEB, query)
61
- await client.send_audio(user_id, response[1])
62
  await cb.answer("Audio sent successfully!")
63
  else:
64
  await cb.answer("Invalid or expired link.", show_alert=True)
 
54
  async def callback_button(client: Client, cb: CallbackQuery):
55
  try:
56
  data = cb.data
 
57
  query = link_storage.get(data)
58
  if query:
59
  response = await Tiktok.download(TIKTOK_WEB, query)
60
+ await client.send_audio(cb.message.chat.id, response[1])
61
  await cb.answer("Audio sent successfully!")
62
  else:
63
  await cb.answer("Invalid or expired link.", show_alert=True)