mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-24 15:24:03 +08:00
percent .2f
This commit is contained in:
parent
04fbf7cdd7
commit
41f3a66938
1 changed files with 1 additions and 1 deletions
2
bot.py
2
bot.py
|
@ -27,7 +27,7 @@ bot = TelegramClient('bot', app_id, app_hash).start(bot_token=token)
|
|||
|
||||
|
||||
async def upload_callback(current, total, chat_id, message):
|
||||
msg = f'Uploading {current / total * 100}: {current}/{total}'
|
||||
msg = f'Uploading {round(current / total * 100, 2)}%: {current}/{total}'
|
||||
await bot.edit_message(chat_id, message, msg)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue