zarox commited on
Commit
791f850
·
verified ·
1 Parent(s): ac6fd3f

Update app.py

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