Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TechifyBots/File-Stream-Bot
/ functions
Functions
60 in github.com/TechifyBots/File-Stream-Bot
⨍
Functions
60
◇
Types & classes
7
↳
Endpoints
3
↓ 6 callers
Function
get_media_from_message
(message: "Message")
biisal/utils/file_properties.py:32
↓ 5 callers
Function
get_name
(media_msg: Message)
biisal/utils/file_properties.py:53
↓ 4 callers
Method
add_user
(self, id)
biisal/utils/database.py:21
↓ 4 callers
Function
get_hash
(media_msg: Message)
biisal/utils/file_properties.py:49
↓ 4 callers
Function
get_shortlink
(url)
biisal/bot/plugins/stream.py:28
↓ 3 callers
Function
humanbytes
(size)
biisal/utils/human_readable.py:6
↓ 3 callers
Method
is_user_exist
(self, id)
biisal/utils/database.py:33
↓ 2 callers
Function
get_file_ids
(client: Client, chat_id: int, id: int)
biisal/utils/file_properties.py:19
↓ 2 callers
Method
is_banned
(self , user_id)
biisal/utils/database.py:56
↓ 2 callers
Method
total_users_count
(self)
biisal/utils/database.py:37
↓ 1 callers
Method
ban_user
(self , user_id)
biisal/utils/database.py:48
↓ 1 callers
Method
clean_cache
function to clean the cache to reduce memory usage
biisal/utils/custom_dl.py:224
↓ 1 callers
Method
delete_user
(self, user_id)
biisal/utils/database.py:45
↓ 1 callers
Method
generate_file_properties
Generates the properties of a media file on a specific message. returns ths properties in a FIleId class.
biisal/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.
biisal/utils/custom_dl.py:61
↓ 1 callers
Function
generate_random_alphanumeric
Generate a random 8-letter alphanumeric string.
biisal/bot/plugins/stream.py:22
↓ 1 callers
Method
get_all_users
(self)
biisal/utils/database.py:41
↓ 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 cach
biisal/utils/custom_dl.py:36
↓ 1 callers
Method
get_location
Returns the file location for the media file.
biisal/utils/custom_dl.py:119
↓ 1 callers
Function
get_media_file_size
(m)
biisal/utils/file_properties.py:57
↓ 1 callers
Function
get_readable_time
(seconds: int)
biisal/utils/time_format.py:5
↓ 1 callers
Function
initialize_clients
()
biisal/bot/clients.py:11
↓ 1 callers
Function
is_enabled
(value, default)
biisal/vars.py:6
↓ 1 callers
Method
is_unbanned
(self , user_id)
biisal/utils/database.py:60
↓ 1 callers
Function
media_streamer
(request: web.Request, id: int, secure_hash: str)
biisal/server/stream_routes.py:90
↓ 1 callers
Method
new_user
(self, id)
biisal/utils/database.py:15
↓ 1 callers
Function
parse_file_id
(message: "Message")
biisal/utils/file_properties.py:9
↓ 1 callers
Function
parse_file_unique_id
(message: "Messages")
biisal/utils/file_properties.py:14
↓ 1 callers
Method
parse_from_env
(self)
biisal/utils/config_parser.py:10
↓ 1 callers
Function
ping_server
()
biisal/utils/keepalive.py:8
↓ 1 callers
Function
render_page
(id, secure_hash, src=None)
biisal/utils/render_template.py:12
↓ 1 callers
Function
send_msg
(user_id, message)
biisal/utils/broadcast_helper.py:9
↓ 1 callers
Function
start_client
(client_id, token)
biisal/bot/clients.py:19
↓ 1 callers
Function
start_services
()
biisal/__main__.py:33
↓ 1 callers
Function
web_server
()
biisal/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/tel
biisal/utils/custom_dl.py:163
Method
__init__
(self, interval, action)
utils_bot.py:12
Method
__init__
(self, uri, database_name)
biisal/utils/database.py:9
Method
__init__
(self, config_file: Optional[str] = None)
biisal/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 f
biisal/utils/custom_dl.py:16
Method
__setInterval
(self)
utils_bot.py:19
Method
add_user_pass
(self, id, ag_pass)
biisal/utils/database.py:25
Function
broadcast_
(c, m)
biisal/bot/plugins/admin.py:29
Method
cancel
(self)
utils_bot.py:25
Function
cb_handler
(client, query)
biisal/bot/plugins/commands.py:192
Function
channel_receive_handler
(bot, broadcast)
biisal/bot/plugins/stream.py:142
Function
do_ban
(bot , message)
biisal/bot/plugins/commands.py:143
Function
do_unban
(bot , message)
biisal/bot/plugins/commands.py:168
Function
get_readable_file_size
(size_in_bytes)
utils_bot.py:29
Function
get_readable_time
(seconds: int)
utils_bot.py:42
Method
get_user_pass
(self, id)
biisal/utils/database.py:29
Function
hello_world
()
app.py:5
Function
help_cd
(b, m)
biisal/bot/plugins/commands.py:87
Function
human_size
Returns a human readable string representation of bytes
biisal/utils/file_size.py:4
Function
private_receive_handler
(c: Client, m: Message)
biisal/bot/plugins/stream.py:52
Function
readable_time
(seconds: int)
utils_bot.py:62
Function
root_route_handler
(_)
biisal/server/stream_routes.py:26
Function
start
(b, m)
biisal/bot/plugins/commands.py:30
Function
stream_handler
(request: web.Request)
biisal/server/stream_routes.py:45
Function
sts
(c: Client, m: Message)
biisal/bot/plugins/admin.py:21