Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lharries/whatsapp-mcp
/ functions
Functions
59 in github.com/lharries/whatsapp-mcp
⨍
Functions
59
◇
Types & classes
11
↓ 4 callers
Method
Close
Close the database connection
whatsapp-bridge/main.go:97
↓ 4 callers
Method
GetFileEncSHA256
GetFileEncSHA256 implements the DownloadableMessage interface
whatsapp-bridge/main.go:547
↓ 4 callers
Method
GetFileLength
GetFileLength implements the DownloadableMessage interface
whatsapp-bridge/main.go:537
↓ 4 callers
Method
GetFileSHA256
GetFileSHA256 implements the DownloadableMessage interface
whatsapp-bridge/main.go:542
↓ 4 callers
Method
GetMediaKey
GetMediaKey implements the DownloadableMessage interface
whatsapp-bridge/main.go:532
↓ 4 callers
Method
GetURL
GetURL implements the DownloadableMessage interface
whatsapp-bridge/main.go:527
↓ 2 callers
Function
GetChatName
GetChatName determines the appropriate name for a chat based on JID and other info
whatsapp-bridge/main.go:926
↓ 2 callers
Method
StoreChat
Store a chat in the database
whatsapp-bridge/main.go:102
↓ 2 callers
Method
StoreMessage
Store a message in the database
whatsapp-bridge/main.go:111
↓ 2 callers
Function
extractMediaInfo
Extract media info from a message
whatsapp-bridge/main.go:375
↓ 2 callers
Function
format_message
Print a single message with consistent formatting.
whatsapp-mcp-server/whatsapp.py:94
↓ 2 callers
Function
format_messages_list
(messages: List[Message], show_chat_info: bool = True)
whatsapp-mcp-server/whatsapp.py:114
↓ 1 callers
Method
GetMediaInfo
Get media info from the database
whatsapp-bridge/main.go:497
↓ 1 callers
Function
NewMessageStore
Initialize message store
whatsapp-bridge/main.go:50
↓ 1 callers
Function
analyzeOggOpus
analyzeOggOpus tries to extract duration and generate a simple waveform from an Ogg Opus file
whatsapp-bridge/main.go:1187
↓ 1 callers
Function
convert_to_opus_ogg
Convert an audio file to Opus format in an Ogg container. Args: input_file (str): Path to the input audio file output_fi
whatsapp-mcp-server/audio.py:5
↓ 1 callers
Function
convert_to_opus_ogg_temp
Convert an audio file to Opus format in an Ogg container and store in a temporary file. Args: input_file (str): Path to the inpu
whatsapp-mcp-server/audio.py:64
↓ 1 callers
Function
downloadMedia
Function to download media from a message
whatsapp-bridge/main.go:557
↓ 1 callers
Function
extractDirectPathFromURL
Extract direct path from a WhatsApp media URL
whatsapp-bridge/main.go:659
↓ 1 callers
Function
extractTextContent
Extract text content from a message
whatsapp-bridge/main.go:176
↓ 1 callers
Function
get_message_context
Get context around a specific message.
whatsapp-mcp-server/whatsapp.py:226
↓ 1 callers
Function
get_sender_name
(sender_jid: str)
whatsapp-mcp-server/whatsapp.py:50
↓ 1 callers
Function
handleHistorySync
Handle history sync events
whatsapp-bridge/main.go:1009
↓ 1 callers
Function
handleMessage
Handle regular incoming messages with media support
whatsapp-bridge/main.go:412
↓ 1 callers
Function
min
min returns the smaller of x or y
whatsapp-bridge/main.go:1294
↓ 1 callers
Function
placeholderWaveform
placeholderWaveform generates a synthetic waveform for WhatsApp voice messages that appears natural with some variability based on the duration
whatsapp-bridge/main.go:1303
↓ 1 callers
Function
sendWhatsAppMessage
Function to send a WhatsApp message
whatsapp-bridge/main.go:206
↓ 1 callers
Function
startRESTServer
Start a REST API server to expose the WhatsApp client functionality
whatsapp-bridge/main.go:679
Method
GetChats
Get all chats
whatsapp-bridge/main.go:154
Method
GetDirectPath
GetDirectPath implements the DownloadableMessage interface
whatsapp-bridge/main.go:522
Method
GetMediaType
GetMediaType implements the DownloadableMessage interface
whatsapp-bridge/main.go:552
Method
GetMessages
Get messages from a chat
whatsapp-bridge/main.go:128
Method
StoreMediaInfo
Store additional media info in the database
whatsapp-bridge/main.go:488
Function
download_media
Download media from a message and return the local file path. Args: message_id: The ID of the message containing the media ch
whatsapp-mcp-server/whatsapp.py:727
Function
download_media
Download media from a WhatsApp message and get the local file path. Args: message_id: The ID of the message containing the media
whatsapp-mcp-server/main.py:225
Function
get_chat
Get chat metadata by JID.
whatsapp-mcp-server/whatsapp.py:535
Function
get_chat
Get WhatsApp chat metadata by JID. Args: chat_jid: The JID of the chat to retrieve include_last_message: Whether to include t
whatsapp-mcp-server/main.py:99
Function
get_contact_chats
Get all chats involving the contact. Args: jid: The contact's JID to search for limit: Maximum number of chats to return (def
whatsapp-mcp-server/whatsapp.py:435
Function
get_contact_chats
Get all WhatsApp chats involving the contact. Args: jid: The contact's JID to search for limit: Maximum number of chats to re
whatsapp-mcp-server/main.py:120
Function
get_direct_chat_by_contact
Get chat metadata by sender phone number.
whatsapp-mcp-server/whatsapp.py:583
Function
get_direct_chat_by_contact
Get WhatsApp chat metadata by sender phone number. Args: sender_phone_number: The phone number to search for
whatsapp-mcp-server/main.py:110
Function
get_last_interaction
Get most recent message involving the contact.
whatsapp-mcp-server/whatsapp.py:486
Function
get_last_interaction
Get most recent WhatsApp message involving the contact. Args: jid: The JID of the contact to search for
whatsapp-mcp-server/main.py:132
Function
get_message_context
Get context around a specific WhatsApp message. Args: message_id: The ID of the message to get context for before: Number of
whatsapp-mcp-server/main.py:142
Method
is_group
Determine if chat is a group based on JID pattern.
whatsapp-mcp-server/whatsapp.py:34
Function
list_chats
Get chats matching the specified criteria.
whatsapp-mcp-server/whatsapp.py:319
Function
list_chats
Get WhatsApp chats matching specified criteria. Args: query: Optional search term to filter chats by name or JID limit: Maxim
whatsapp-mcp-server/main.py:73
Function
list_messages
Get messages matching the specified criteria with optional context.
whatsapp-mcp-server/whatsapp.py:124
Function
list_messages
Get WhatsApp messages matching specified criteria with optional context. Args: after: Optional ISO-8601 formatted string to only retu
whatsapp-mcp-server/main.py:32
Function
main
()
whatsapp-bridge/main.go:789
Function
requestHistorySync
Request history sync from the server
whatsapp-bridge/main.go:1151
Function
search_contacts
Search contacts by name or phone number.
whatsapp-mcp-server/whatsapp.py:393
Function
search_contacts
Search WhatsApp contacts by name or phone number. Args: query: Search term to match against contact names or phone numbers
whatsapp-mcp-server/main.py:22
Function
send_audio_message
(recipient: str, media_path: str)
whatsapp-mcp-server/whatsapp.py:687
Function
send_audio_message
Send any audio file as a WhatsApp audio message to the specified recipient. For group messages use the JID. If it errors due to ffmpeg not being insta
whatsapp-mcp-server/main.py:207
Function
send_file
(recipient: str, media_path: str)
whatsapp-mcp-server/whatsapp.py:653
Function
send_file
Send a file such as a picture, raw audio, video or document via WhatsApp to the specified recipient. For group messages use the JID. Args:
whatsapp-mcp-server/main.py:187
Function
send_message
(recipient: str, message: str)
whatsapp-mcp-server/whatsapp.py:625
Function
send_message
Send a WhatsApp message to a person or group. For group chats use the JID. Args: recipient: The recipient - either a phone number with co
whatsapp-mcp-server/main.py:158