Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KarimJedda/whatsappcli
/ functions
Functions
41 in github.com/KarimJedda/whatsappcli
⨍
Functions
41
◇
Types & classes
11
↓ 3 callers
Method
__init__
The construction method receives the interface_layer (RouteLayer), so it can access the protocol methods to upload and send t
src/utils/media_downloader.py:42
↓ 3 callers
Method
send_by_path
Send a file by its absolute path. Creates a RequestUpload entity, that will verify if the media has already been uploaded.
src/utils/media_downloader.py:58
↓ 2 callers
Method
_do_send_file
Now the media file has been uploaded and the whatsapp server returns a media_path. The media_path is then sent to the receipt
src/utils/media_downloader.py:99
↓ 2 callers
Method
_on_error
(self, jid, *args, **kwargs)
src/utils/media_downloader.py:117
↓ 2 callers
Method
start
Starts the connection with Whatsapp servers,
src/server.py:36
↓ 2 callers
Method
start
(self)
src/sender/stack.py:46
↓ 1 callers
Method
_build_file_path
(self, url)
src/utils/media_downloader.py:124
↓ 1 callers
Method
_build_file_path
(self, video_id)
src/utils/media_downloader.py:153
↓ 1 callers
Method
_build_file_path
(self, page_url)
src/utils/media_downloader.py:169
↓ 1 callers
Method
_build_file_path
(self, text)
src/utils/media_downloader.py:200
↓ 1 callers
Method
_download_file
This method check for duplicate file before downloading, If not downloaded, download it, saves locally and returns the path
src/utils/media_downloader.py:72
↓ 1 callers
Method
_get_file_ext
(self, url)
src/utils/media_downloader.py:121
↓ 1 callers
Method
_on_upload_request_result
If the file has never been uploaded, will be uploaded and then call the _do_send_file
src/utils/media_downloader.py:85
↓ 1 callers
Function
memReport
()
src/utils/memReport.py:6
↓ 1 callers
Method
send
(self, jid, text, lang=None)
src/utils/media_downloader.py:182
↓ 1 callers
Function
send_simple_message
(message)
src/simpleSend.py:7
↓ 1 callers
Method
tts_record
(self, text, lang)
src/utils/media_downloader.py:193
Method
__init__
(self, interface_layer)
src/routes.py:8
Method
__init__
Default Yowsup setup, with the Route Layer on top
src/server.py:19
Method
__init__
(self)
src/router.py:16
Method
__init__
(self, interface_layer)
src/utils/media_downloader.py:130
Method
__init__
(self, interface_layer)
src/utils/media_downloader.py:136
Method
__init__
(self, interface_layer)
src/utils/media_downloader.py:178
Method
__init__
:param credentials: :param messages: list of (jid, message) tuples :param encryptionEnabled: :return:
src/sender/stack.py:13
Method
__init__
(self)
src/sender/layer.py:12
Method
_download_file
(self, video_id)
src/utils/media_downloader.py:145
Method
_download_file
(self, page_url)
src/utils/media_downloader.py:161
Method
_on_upload_progress
(self, filePath, jid, url, progress)
src/utils/media_downloader.py:113
Function
exec_command
(message, match)
src/routes.py:32
Function
hello
(message, match)
src/routes.py:23
Function
memory_usage
(message, match)
src/routes.py:39
Method
onAck
(self, entity)
src/sender/layer.py:38
Method
onSuccess
(self, successProtocolEntity)
src/sender/layer.py:19
Method
on_message
(self, message)
src/router.py:23
Method
on_receipt
(self, entity)
src/router.py:41
Function
preparing_demo
(message, match)
src/routes.py:43
Method
route
(self, message)
src/router.py:28
Method
send_by_url
Downloads and send a file_url
src/utils/media_downloader.py:52
Method
send_image
(self, message, match)
src/routes.py:17
Method
send_tts
(self, message, match)
src/routes.py:20
Function
start_server
(message, match)
src/routes.py:28