diff --git a/main.py b/main.py index 2b9ac8e..46d3e69 100644 --- a/main.py +++ b/main.py @@ -128,7 +128,7 @@ async def usage(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: total_spent=0.0 total_spent+=(user_info['chatgpt']/750)*0.002 total_spent+=float(user_info['dalle'])*0.02 - total_spent+=(user_info['whisper'])*0.006 + total_spent+=(user_info['whisper']/60.0)*0.006 info_message=f"""User: {update.effective_user.name}\n- Used {user_info["chatgpt"]} characters with ChatGPT.\n- Generated {user_info["dalle"]} images with DALL-E.\n- Transcribed {user_info["whisper"]}min with Whisper.\n\nTotal spent: ${str(total_spent)}""" await context.bot.send_message(chat_id=update.effective_chat.id, text=info_message)