Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Itz-JEOL/File-To-Link
/ functions
Functions
57 in github.com/Itz-JEOL/File-To-Link
⨍
Functions
57
◇
Types & classes
7
↳
Endpoints
2
↓ 6 callers
Function
get_media_from_message
(message: "Message")
Adarsh/utils/file_properties.py:32
↓ 5 callers
Method
add_user
(self, id)
Adarsh/utils/database.py:18
↓ 5 callers
Function
get_name
(media_msg: Message)
Adarsh/utils/file_properties.py:53
↓ 5 callers
Function
get_readable_file_size
(size_in_bytes)
utils_bot.py:29
↓ 5 callers
Function
humanbytes
(size)
Adarsh/utils/human_readable.py:4
↓ 4 callers
Function
get_hash
(media_msg: Message)
Adarsh/utils/file_properties.py:49
↓ 4 callers
Method
is_user_exist
(self, id)
Adarsh/utils/database.py:30
↓ 2 callers
Function
get_file_ids
(client: Client, chat_id: int, id: int)
Adarsh/utils/file_properties.py:19
↓ 2 callers
Method
total_users_count
(self)
Adarsh/utils/database.py:34
↓ 1 callers
Method
clean_cache
function to clean the cache to reduce memory usage
Adarsh/utils/custom_dl.py:224
↓ 1 callers
Method
delete_user
(self, user_id)
Adarsh/utils/database.py:42
↓ 1 callers
Method
generate_file_properties
Generates the properties of a media file on a specific message. returns ths properties in a FIleId class.
Adarsh/utils/custom_dl.py:47
↓ 1 callers
Method
generate_media_session
Generates the media session for the DC that contains the media file. This is required for getting the bytes from Telegram servers.
Adarsh/utils/custom_dl.py:61
↓ 1 callers
Method
get_all_users
(self)
Adarsh/utils/database.py:38
↓ 1 callers
Method
get_file_properties
Returns the properties of a media of a specific message in a FIleId class. if the properties are cached, then it'll return the cached
Adarsh/utils/custom_dl.py:36
↓ 1 callers
Method
get_location
Returns the file location for the media file.
Adarsh/utils/custom_dl.py:119
↓ 1 callers
Function
get_media_file_size
(m)
Adarsh/utils/file_properties.py:57
↓ 1 callers
Function
get_readable_time
(seconds: int)
Adarsh/utils/time_format.py:4
↓ 1 callers
Function
initialize_clients
()
Adarsh/bot/clients.py:11
↓ 1 callers
Function
list
(l, m)
Adarsh/bot/plugins/extra.py:65
↓ 1 callers
Function
media_streamer
(request: web.Request, id: int, secure_hash: str)
Adarsh/server/stream_routes.py:90
↓ 1 callers
Method
new_user
(self, id)
Adarsh/utils/database.py:12
↓ 1 callers
Function
parse_file_id
(message: "Message")
Adarsh/utils/file_properties.py:9
↓ 1 callers
Function
parse_file_unique_id
(message: "Messages")
Adarsh/utils/file_properties.py:14
↓ 1 callers
Method
parse_from_env
(self)
Adarsh/utils/config_parser.py:10
↓ 1 callers
Function
ping_server
()
Adarsh/utils/keepalive.py:8
↓ 1 callers
Function
readable_time
(seconds: int)
utils_bot.py:62
↓ 1 callers
Function
render_page
(id, secure_hash)
Adarsh/utils/render_template.py:12
↓ 1 callers
Function
send_msg
(user_id, message)
Adarsh/utils/broadcast_helper.py:8
↓ 1 callers
Function
start_client
(client_id, token)
Adarsh/bot/clients.py:19
↓ 1 callers
Function
start_services
()
Adarsh/__main__.py:31
↓ 1 callers
Function
web_server
()
Adarsh/server/__init__.py:7
↓ 1 callers
Method
yield_file
Custom generator that yields the bytes of the media file. Modded from <https://github.com/eyaadh/megadlbot_oss/blob/master/mega/teleg
Adarsh/utils/custom_dl.py:163
Method
__init__
(self, interval, action)
utils_bot.py:12
Method
__init__
(self, uri, database_name)
Adarsh/utils/database.py:7
Method
__init__
(self, config_file: Optional[str] = None)
Adarsh/utils/config_parser.py:6
Method
__init__
A custom class that holds the cache of a specific client and class functions. attributes: client: the client that the cache is for
Adarsh/utils/custom_dl.py:16
Method
__setInterval
(self)
utils_bot.py:19
Function
about_handler
(bot, message)
Adarsh/bot/plugins/start_help.py:96
Method
add_user_pass
(self, id, ag_pass)
Adarsh/utils/database.py:22
Function
broadcast_
(c, m)
Adarsh/bot/plugins/admin.py:27
Method
cancel
(self)
utils_bot.py:25
Function
channel_receive_handler
(bot, broadcast)
Adarsh/bot/plugins/stream.py:55
Function
follow_user
(b,m)
Adarsh/bot/plugins/extra.py:34
Function
get_readable_time
(seconds: int)
utils_bot.py:42
Method
get_user_pass
(self, id)
Adarsh/utils/database.py:26
Function
help_handler
(bot, message)
Adarsh/bot/plugins/start_help.py:72
Function
human_size
Returns a human readable string representation of bytes
Adarsh/utils/file_size.py:2
Function
maintainers
(b,m)
Adarsh/bot/plugins/extra.py:14
Function
ping
(b, m)
Adarsh/bot/plugins/extra.py:74
Function
private_receive_handler
(c: Client, m: Message)
Adarsh/bot/plugins/stream.py:26
Function
root_route_handler
(_)
Adarsh/server/stream_routes.py:25
Function
start
(bot, update)
Adarsh/bot/plugins/extra.py:54
Function
start
(b, m)
Adarsh/bot/plugins/start_help.py:18
Function
stats
(bot, update)
Adarsh/bot/plugins/extra.py:85
Function
stream_handler
(request: web.Request)
Adarsh/server/stream_routes.py:45
Function
sts
(c: Client, m: Message)
Adarsh/bot/plugins/admin.py:19