Skip to content

Commit

Permalink
file size in bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
DeekshithSH committed Jul 20, 2024
1 parent 9fc8c9a commit bdc3176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebStreamer/bot/plugins/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def private_receive_handler(event: NewMessage.Event):
stream_link=Var.LINK_TEMPLATE.format_map({
"url": Var.CUSTOM_URL,
"name": urllib.parse.quote(file_name),
"size": file_size,
"size": get_size(event.message.media),
"id": log_msg.id,
"mime": urllib.parse.quote(log_msg.file.mime_type)
})
Expand Down

0 comments on commit bdc3176

Please sign in to comment.