MCPcopy Index your code

hub / github.com/lharries/whatsapp-mcp / functions

Functions59 in github.com/lharries/whatsapp-mcp

↓ 4 callersMethodClose
Close the database connection
whatsapp-bridge/main.go:97
↓ 4 callersMethodGetFileEncSHA256
GetFileEncSHA256 implements the DownloadableMessage interface
whatsapp-bridge/main.go:547
↓ 4 callersMethodGetFileLength
GetFileLength implements the DownloadableMessage interface
whatsapp-bridge/main.go:537
↓ 4 callersMethodGetFileSHA256
GetFileSHA256 implements the DownloadableMessage interface
whatsapp-bridge/main.go:542
↓ 4 callersMethodGetMediaKey
GetMediaKey implements the DownloadableMessage interface
whatsapp-bridge/main.go:532
↓ 4 callersMethodGetURL
GetURL implements the DownloadableMessage interface
whatsapp-bridge/main.go:527
↓ 2 callersFunctionGetChatName
GetChatName determines the appropriate name for a chat based on JID and other info
whatsapp-bridge/main.go:926
↓ 2 callersMethodStoreChat
Store a chat in the database
whatsapp-bridge/main.go:102
↓ 2 callersMethodStoreMessage
Store a message in the database
whatsapp-bridge/main.go:111
↓ 2 callersFunctionextractMediaInfo
Extract media info from a message
whatsapp-bridge/main.go:375
↓ 2 callersFunctionformat_message
Print a single message with consistent formatting.
whatsapp-mcp-server/whatsapp.py:94
↓ 2 callersFunctionformat_messages_list
(messages: List[Message], show_chat_info: bool = True)
whatsapp-mcp-server/whatsapp.py:114
↓ 1 callersMethodGetMediaInfo
Get media info from the database
whatsapp-bridge/main.go:497
↓ 1 callersFunctionNewMessageStore
Initialize message store
whatsapp-bridge/main.go:50
↓ 1 callersFunctionanalyzeOggOpus
analyzeOggOpus tries to extract duration and generate a simple waveform from an Ogg Opus file
whatsapp-bridge/main.go:1187
↓ 1 callersFunctionconvert_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 callersFunctionconvert_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 callersFunctiondownloadMedia
Function to download media from a message
whatsapp-bridge/main.go:557
↓ 1 callersFunctionextractDirectPathFromURL
Extract direct path from a WhatsApp media URL
whatsapp-bridge/main.go:659
↓ 1 callersFunctionextractTextContent
Extract text content from a message
whatsapp-bridge/main.go:176
↓ 1 callersFunctionget_message_context
Get context around a specific message.
whatsapp-mcp-server/whatsapp.py:226
↓ 1 callersFunctionget_sender_name
(sender_jid: str)
whatsapp-mcp-server/whatsapp.py:50
↓ 1 callersFunctionhandleHistorySync
Handle history sync events
whatsapp-bridge/main.go:1009
↓ 1 callersFunctionhandleMessage
Handle regular incoming messages with media support
whatsapp-bridge/main.go:412
↓ 1 callersFunctionmin
min returns the smaller of x or y
whatsapp-bridge/main.go:1294
↓ 1 callersFunctionplaceholderWaveform
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 callersFunctionsendWhatsAppMessage
Function to send a WhatsApp message
whatsapp-bridge/main.go:206
↓ 1 callersFunctionstartRESTServer
Start a REST API server to expose the WhatsApp client functionality
whatsapp-bridge/main.go:679
MethodGetChats
Get all chats
whatsapp-bridge/main.go:154
MethodGetDirectPath
GetDirectPath implements the DownloadableMessage interface
whatsapp-bridge/main.go:522
MethodGetMediaType
GetMediaType implements the DownloadableMessage interface
whatsapp-bridge/main.go:552
MethodGetMessages
Get messages from a chat
whatsapp-bridge/main.go:128
MethodStoreMediaInfo
Store additional media info in the database
whatsapp-bridge/main.go:488
Functiondownload_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
Functiondownload_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
Functionget_chat
Get chat metadata by JID.
whatsapp-mcp-server/whatsapp.py:535
Functionget_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
Functionget_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
Functionget_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
Functionget_direct_chat_by_contact
Get chat metadata by sender phone number.
whatsapp-mcp-server/whatsapp.py:583
Functionget_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
Functionget_last_interaction
Get most recent message involving the contact.
whatsapp-mcp-server/whatsapp.py:486
Functionget_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
Functionget_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
Methodis_group
Determine if chat is a group based on JID pattern.
whatsapp-mcp-server/whatsapp.py:34
Functionlist_chats
Get chats matching the specified criteria.
whatsapp-mcp-server/whatsapp.py:319
Functionlist_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
Functionlist_messages
Get messages matching the specified criteria with optional context.
whatsapp-mcp-server/whatsapp.py:124
Functionlist_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
Functionmain
()
whatsapp-bridge/main.go:789
FunctionrequestHistorySync
Request history sync from the server
whatsapp-bridge/main.go:1151
Functionsearch_contacts
Search contacts by name or phone number.
whatsapp-mcp-server/whatsapp.py:393
Functionsearch_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
Functionsend_audio_message
(recipient: str, media_path: str)
whatsapp-mcp-server/whatsapp.py:687
Functionsend_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
Functionsend_file
(recipient: str, media_path: str)
whatsapp-mcp-server/whatsapp.py:653
Functionsend_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
Functionsend_message
(recipient: str, message: str)
whatsapp-mcp-server/whatsapp.py:625
Functionsend_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