zarox commited on
Commit
89f365a
·
verified ·
1 Parent(s): c8250ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ BOT_TOKEN = os.environ.get("BOT_TOKEN")
15
 
16
  client = TelegramClient('session_name', API_ID, API_HASH)
17
 
18
- get_duration = lambda x: len(Fusion.from_file(x))/1000.0
19
  states = {}
20
 
21
  @client.on(events.NewMessage(pattern='/start'))
 
15
 
16
  client = TelegramClient('session_name', API_ID, API_HASH)
17
 
18
+ get_duration = lambda x: int(len(Fusion.from_file(x))/1000.0)
19
  states = {}
20
 
21
  @client.on(events.NewMessage(pattern='/start'))