Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rhymen/go-whatsapp
/ functions
Functions
1,226 in github.com/Rhymen/go-whatsapp
⨍
Functions
1,226
◇
Types & classes
160
↓ 20 callers
Method
GetMessage
()
binary/proto/def.pb.go:5870
↓ 16 callers
Method
shouldCallSynchronously
(handler Handler)
handler.go:183
↓ 15 callers
Method
writeJson
writeJson enqueues a json message into the writeChan
write.go:19
↓ 13 callers
Method
pushByte
(b byte)
binary/encoder.go:23
↓ 12 callers
Method
handle
(message interface{})
handler.go:188
↓ 11 callers
Method
query
(t, jid, messageId, kind, owner, search string, count, page int)
contact.go:130
↓ 10 callers
Function
getMessageInfo
(msg *proto.WebMessageInfo)
message.go:237
↓ 10 callers
Method
handleWithCustomHandlers
(message interface{}, handlers []Handler)
handler.go:192
↓ 9 callers
Method
GetContextInfo
()
binary/proto/def.pb.go:2042
↓ 9 callers
Method
Login
* Login is the function that creates a new whatsapp session and logs you in. If you do not want to scan the qr code every time, you should save the re
session.go:188
↓ 9 callers
Function
getMessageContext
(msg *proto.ContextInfo)
message.go:284
↓ 9 callers
Method
readInt8
(littleEndian bool)
binary/decoder.go:59
↓ 8 callers
Function
getContextInfoProto
(context *ContextInfo)
message.go:294
↓ 8 callers
Function
getInfoProto
(info *MessageInfo)
message.go:250
↓ 7 callers
Method
setGroup
(t, jid, subject string, participants []string)
contact.go:189
↓ 7 callers
Method
writeBinary
(node binary.Node, metric metric, flag flag, messageTag string)
write.go:47
↓ 6 callers
Method
AddHandler
* AddHandler adds an handler to the list of handler that receive dispatched messages. The provided handler must at least implement the Handler interfa
handler.go:158
↓ 6 callers
Method
GetUrl
()
binary/proto/def.pb.go:1298
↓ 6 callers
Method
RestoreWithSession
TODO: GoDoc * Basically the old RestoreSession functionality */
session.go:326
↓ 5 callers
Function
Download
(url string, mediaKey []byte, appInfo MediaType, fileLength int)
media.go:21
↓ 5 callers
Method
GetFileEncSha256
()
binary/proto/def.pb.go:2007
↓ 5 callers
Method
GetFileLength
()
binary/proto/def.pb.go:1979
↓ 5 callers
Method
GetFileSha256
()
binary/proto/def.pb.go:1972
↓ 5 callers
Method
GetJpegThumbnail
()
binary/proto/def.pb.go:1695
↓ 5 callers
Method
GetMediaKey
()
binary/proto/def.pb.go:2000
↓ 5 callers
Method
GetMimetype
()
binary/proto/def.pb.go:1958
↓ 5 callers
Method
GetTitle
()
binary/proto/def.pb.go:4141
↓ 5 callers
Method
GetTitle
()
binary/proto/def.pb.go:4298
↓ 5 callers
Method
Read
(jid, id string)
contact.go:106
↓ 5 callers
Method
readByte
()
binary/decoder.go:27
↓ 5 callers
Method
writeString
(tok string, i bool)
binary/encoder.go:111
↓ 5 callers
Method
writeToken
(tok int)
binary/encoder.go:180
↓ 4 callers
Function
Decrypt
* Decrypt is a function that decrypts a given cipher text with a provided key and initialization vector(iv). */
crypto/cbc/cbc.go:29
↓ 4 callers
Method
Disconnect
()
conn.go:230
↓ 4 callers
Function
Expand
* Expand expands a given key with the HKDF algorithm. */
crypto/hkdf/hkdf.go:21
↓ 4 callers
Method
GetKey
()
binary/proto/def.pb.go:5863
↓ 4 callers
Function
ParseProtoMessage
(msg *proto.WebMessageInfo)
message.go:805
↓ 4 callers
Method
Send
(msg interface{})
message.go:26
↓ 4 callers
Method
Upload
(reader io.Reader, appInfo MediaType)
media.go:149
↓ 4 callers
Method
checkEOS
(length int)
binary/decoder.go:19
↓ 4 callers
Method
pushIntN
(value, n int, littleEndian bool)
binary/encoder.go:31
↓ 4 callers
Method
readIntN
(n int, littleEndian bool)
binary/decoder.go:38
↓ 4 callers
Method
readString
(tag int)
binary/decoder.go:168
↓ 3 callers
Function
Encrypt
* Encrypt is a function that encrypts plaintext with a given key and an optional initialization vector(iv). */
crypto/cbc/cbc.go:54
↓ 3 callers
Method
GetButton
()
binary/proto/def.pb.go:1418
↓ 3 callers
Method
GetCaption
()
binary/proto/def.pb.go:1702
↓ 3 callers
Method
GetHydratedButton
()
binary/proto/def.pb.go:1174
↓ 3 callers
Method
Restore
*//TODO: GoDoc RestoreWithSession is the function that restores a given session. It will try to reestablish the connection to the WhatsAppWeb servers
session.go:351
↓ 3 callers
Method
connect
connect should be guarded with wsWriteMutex
conn.go:177
↓ 3 callers
Function
decodeMessages
(n *binary.Node)
chat_history.go:16
↓ 3 callers
Method
pushBytes
(bytes []byte)
binary/encoder.go:27
↓ 3 callers
Method
readBytes
(n int)
binary/decoder.go:376
↓ 3 callers
Method
readStringFromChars
(length int)
binary/decoder.go:242
↓ 3 callers
Method
write
(messageType int, answerMessageTag string, data []byte)
write.go:125
↓ 2 callers
Method
Error
()
errors.go:33
↓ 2 callers
Method
GetAudioMessage
()
binary/proto/def.pb.go:5019
↓ 2 callers
Method
GetContactMessage
()
binary/proto/def.pb.go:4991
↓ 2 callers
Method
GetConversation
()
binary/proto/def.pb.go:4970
↓ 2 callers
Method
GetDatetimeOneof
()
binary/proto/def.pb.go:3367
↓ 2 callers
Method
GetDegreesLatitude
()
binary/proto/def.pb.go:1489
↓ 2 callers
Method
GetDegreesLongitude
()
binary/proto/def.pb.go:1496
↓ 2 callers
Method
GetDocumentMessage
()
binary/proto/def.pb.go:5012
↓ 2 callers
Method
GetExtendedTextMessage
()
binary/proto/def.pb.go:5005
↓ 2 callers
Method
GetFormat
()
binary/proto/def.pb.go:4418
↓ 2 callers
Method
GetId
()
binary/proto/def.pb.go:2923
↓ 2 callers
Method
GetImageMessage
()
binary/proto/def.pb.go:4984
↓ 2 callers
Method
GetLiveLocationMessage
()
binary/proto/def.pb.go:5082
↓ 2 callers
Method
GetLocationMessage
()
binary/proto/def.pb.go:4998
↓ 2 callers
Method
GetParamOneof
()
binary/proto/def.pb.go:3455
↓ 2 callers
Method
GetParticipant
()
binary/proto/def.pb.go:5215
↓ 2 callers
Method
GetSeconds
()
binary/proto/def.pb.go:2613
↓ 2 callers
Method
GetStickerMessage
()
binary/proto/def.pb.go:5117
↓ 2 callers
Method
GetVideoMessage
()
binary/proto/def.pb.go:5026
↓ 2 callers
Method
HandleAudioMessage
(message AudioMessage)
handler.go:57
↓ 2 callers
Method
HandleBatteryMessage
(battery BatteryMessage)
handler.go:141
↓ 2 callers
Method
HandleChatList
(contacts []Chat)
handler.go:133
↓ 2 callers
Method
HandleContactList
(contacts []Contact)
handler.go:125
↓ 2 callers
Method
HandleContactMessage
(message ContactMessage)
handler.go:97
↓ 2 callers
Method
HandleDocumentMessage
(message DocumentMessage)
handler.go:65
↓ 2 callers
Method
HandleError
(err error)
handler.go:20
↓ 2 callers
Method
HandleImageMessage
(message ImageMessage)
handler.go:41
↓ 2 callers
Method
HandleJsonMessage
(message string)
handler.go:108
↓ 2 callers
Method
HandleLiveLocationMessage
(message LiveLocationMessage)
handler.go:73
↓ 2 callers
Method
HandleLocationMessage
(message LocationMessage)
handler.go:81
↓ 2 callers
Method
HandleNewContact
(contact Contact)
handler.go:149
↓ 2 callers
Method
HandleRawMessage
(message *proto.WebMessageInfo)
handler.go:117
↓ 2 callers
Method
HandleStickerMessage
(message StickerMessage)
handler.go:89
↓ 2 callers
Method
HandleTextMessage
(message TextMessage)
handler.go:33
↓ 2 callers
Method
HandleVideoMessage
(message VideoMessage)
handler.go:49
↓ 2 callers
Function
IndexOfSingleToken
(token string)
binary/token/token.go:48
↓ 2 callers
Function
Marshal
(n Node)
binary/node.go:15
↓ 2 callers
Function
NewConnWithOptions
(opt *Options)
conn.go:142
↓ 2 callers
Function
ParseNodeMessage
(msg binary.Node)
message.go:878
↓ 2 callers
Method
ReadNode
()
binary/decoder.go:304
↓ 2 callers
Method
String
()
binary/proto/def.pb.go:2852
↓ 2 callers
Function
Unmarshal
(data []byte)
binary/node.go:61
↓ 2 callers
Method
WriteNode
(n Node)
binary/encoder.go:84
↓ 2 callers
Method
decryptBinaryMessage
(msg []byte)
read.go:107
↓ 2 callers
Function
getMediaKeys
(mediaKey []byte, appInfo MediaType)
media.go:61
↓ 2 callers
Function
getTextMessage
(msg *proto.WebMessageInfo)
message.go:320
next →
1–100 of 1,226, ranked by callers