MCPcopy Create free account

hub / github.com/mautrix/whatsapp / functions

Functions412 in github.com/mautrix/whatsapp

↓ 2 callersFunctionfixStickerDimensions
(info *event.FileInfo)
pkg/msgconv/wa-media.go:246
↓ 2 callersMethodformatDisplayname
(jid types.JID, phone string, contact types.ContactInfo)
pkg/connector/config.go:163
↓ 2 callersMethodformatMessageHistoryNoticeJID
(ctx context.Context, jid types.JID)
pkg/msgconv/wa-misc.go:122
↓ 2 callersMethodgenerateContextInfo
( ctx context.Context, replyTo *database.Message, portal *bridgev2.Portal, perMessageTimer *event.BeeperDi
pkg/msgconv/from-matrix.go:53
↓ 2 callersMethodgetBasicUserInfo
(ctx context.Context, user types.JID)
pkg/msgconv/from-whatsapp.go:69
↓ 2 callersMethodgetChatInfo
(ctx context.Context, portalJID types.JID, conv *wadb.Conversation, isNew bool)
pkg/connector/chatinfo.go:32
↓ 2 callersMethodgetContactList
(ctx context.Context, filter string, onlyContacts bool)
pkg/connector/startchat.go:182
↓ 2 callersMethodgetDirectMediaRetryState
(msgID networkid.MessageID, create bool)
pkg/connector/directmedia.go:264
↓ 2 callersMethodgetLastMessageInfo
(ctx context.Context, chatJID types.JID, portalKey networkid.PortalKey)
pkg/connector/handlematrix.go:628
↓ 2 callersFunctiongetPollOptions
( poq *PollOptionQuery, ctx context.Context, mxid id.EventID, query string, things []LookupKey, getKeyVa
pkg/connector/wadb/polloption.go:77
↓ 2 callersMethodgetRealSender
()
pkg/connector/events.go:414
↓ 2 callersMethodhandleWACallStart
(ctx context.Context, group, sender, senderAlt types.JID, id, callType string, ts time.Time)
pkg/connector/handlewhatsapp.go:531
↓ 2 callersFunctionisFailedMedia
(converted *bridgev2.ConvertedMessage)
pkg/connector/mediarequest.go:34
↓ 2 callersMethodisViewOnce
()
pkg/connector/events.go:117
↓ 2 callersMethodmakeCreateChatResponse
(ctx context.Context, jid, origJID types.JID)
pkg/connector/startchat.go:125
↓ 2 callersMethodmakeDirectMediaAvatar
(ctx context.Context, jid types.JID, avatar *types.ProfilePictureInfo, community bool)
pkg/connector/userinfo.go:306
↓ 2 callersMethodmakeDirectMediaResponse
( ctx context.Context, waClient *WhatsAppClient, dm whatsmeow.DownloadableMessage, mimeType string, msgID
pkg/connector/directmedia.go:201
↓ 2 callersMethodmakeMediaFailure
(ctx context.Context, mediaInfo *PreparedMedia, keys *FailedMediaKeys, err error)
pkg/msgconv/wa-media.go:438
↓ 2 callersMethodmakePortalAvatarFetcher
(avatarID string, sender types.JID, ts time.Time)
pkg/connector/chatinfo.go:420
↓ 2 callersMethodmessageIDToKey
(id *waid.ParsedMessageID)
pkg/connector/id.go:58
↓ 2 callersMethodmsc1767ToWhatsApp
(ctx context.Context, msg event.MSC1767Message, allowedMentions *event.Mentions)
pkg/msgconv/matrixpoll.go:41
↓ 2 callersMethodobfuscateJID
(jid types.JID)
pkg/connector/analytics.go:30
↓ 2 callersFunctionparseHistoryTime
(ts *uint64)
pkg/connector/wadb/conversation.go:36
↓ 2 callersFunctionparseWASubFormattingToHTML
(text string, allowInlineURL bool, output *strings.Builder)
pkg/msgconv/wa-text.go:85
↓ 2 callersMethodphoneSeen
phoneSeen records a timestamp when the user's main device was seen online. The stored timestamp can later be used to warn the user if the main device
pkg/connector/phoneping.go:99
↓ 2 callersFunctionrerouteMessageKey
(ctx context.Context, chat, sender types.JID, groupLIDAddressing bool)
pkg/msgconv/wa-poll.go:97
↓ 2 callersMethodsendMediaRequestDirect
(ctx context.Context, rawMsgID networkid.MessageID, key []byte)
pkg/connector/mediarequest.go:150
↓ 2 callersFunctionsetTopicID
(id, topic string)
pkg/connector/chatinfo.go:230
↓ 2 callersMethodwrapDMInfo
(ctx context.Context, jid types.JID)
pkg/connector/chatinfo.go:143
↓ 2 callersMethodwrapNewsletterInfo
(ctx context.Context, info *types.NewsletterMetadata)
pkg/connector/chatinfo.go:477
↓ 1 callersMethodAddLogContext
(c zerolog.Context)
pkg/connector/events.go:405
↓ 1 callersMethodDeleteAllInChat
(ctx context.Context, loginID networkid.UserLoginID, chatJID types.JID)
pkg/connector/wadb/message.go:132
↓ 1 callersMethodDeleteBetween
(ctx context.Context, loginID networkid.UserLoginID, chatJID types.JID, before, after uint64)
pkg/connector/wadb/message.go:119
↓ 1 callersMethodFormatDisplayname
(jid types.JID, phone string, contact types.ContactInfo)
pkg/connector/config.go:185
↓ 1 callersMethodGeneratePushKeys
()
pkg/waid/dbmeta.go:55
↓ 1 callersMethodGetBetween
(ctx context.Context, loginID networkid.UserLoginID, chatJID types.JID, startTime, endTime *time.Time, limit i
pkg/connector/wadb/message.go:94
↓ 1 callersMethodGetFileName
()
pkg/msgconv/wa-media.go:236
↓ 1 callersMethodGetHashes
(ctx context.Context, mxid id.EventID, ids []string)
pkg/connector/wadb/polloption.go:70
↓ 1 callersMethodGetHeight
()
pkg/msgconv/wa-media.go:230
↓ 1 callersMethodGetIDs
(ctx context.Context, mxid id.EventID, hashes [][]byte)
pkg/connector/wadb/polloption.go:63
↓ 1 callersMethodGetMediaEditCache
(portal *bridgev2.Portal, messageID networkid.MessageID)
pkg/connector/mediaeditcache.go:70
↓ 1 callersMethodGetMediaKey
()
pkg/msgconv/wa-media.go:175
↓ 1 callersMethodGetMediaType
()
pkg/msgconv/wa-media.go:167
↓ 1 callersMethodGetNext
(ctx context.Context, loginID networkid.UserLoginID)
pkg/connector/wadb/hsnotif.go:59
↓ 1 callersMethodGetRecent
( ctx context.Context, loginID networkid.UserLoginID, limit int, notSyncedAfter jsontime.Unix, )
pkg/connector/wadb/conversation.go:127
↓ 1 callersMethodGetUnrequestedForUserLogin
(ctx context.Context, loginID networkid.UserLoginID)
pkg/connector/wadb/mediarequest.go:63
↓ 1 callersMethodGetUserInfo
(ctx context.Context, ghost *bridgev2.Ghost)
pkg/connector/userinfo.go:174
↓ 1 callersMethodGetWidth
()
pkg/msgconv/wa-media.go:231
↓ 1 callersFunctionMakeAvatarMediaID
(targetJID types.JID, id string, receiver networkid.UserLoginID, community bool)
pkg/waid/mediaid.go:64
↓ 1 callersFunctionMakeMediaID
(messageInfo *types.MessageInfo, idOverride types.MessageID, receiver networkid.UserLoginID, version []byte)
pkg/waid/mediaid.go:39
↓ 1 callersFunctionMakeStickerPackMediaID
(packID string, fileHash []byte, receiver networkid.UserLoginID)
pkg/waid/mediaid.go:88
↓ 1 callersMethodMarkSynced
(ctx context.Context, loginID networkid.UserLoginID, chatJID types.JID, loginTS jsontime.Unix)
pkg/connector/wadb/conversation.go:138
↓ 1 callersMethodMediaRetryToMatrix
( ctx context.Context, part *PreparedMedia, client *whatsmeow.Client, intent bridgev2.MatrixAPI, portal *
pkg/msgconv/wa-media.go:329
↓ 1 callersFunctionNew
(br *bridgev2.Bridge)
pkg/msgconv/msgconv.go:54
↓ 1 callersFunctionNew
(bridgeID networkid.BridgeID, db *dbutil.Database, log zerolog.Logger)
pkg/connector/wadb/database.go:21
↓ 1 callersFunctionNewConversation
(loginID networkid.UserLoginID, chatJID types.JID, conv *waHistorySync.Conversation, mostRecentMessage time.Ti
pkg/connector/wadb/conversation.go:43
↓ 1 callersMethodOnMatrixEvent
(any, time.Duration, error)
pkg/connector/mclient.go:51
↓ 1 callersMethodOnWhatsAppEvent
(any)
pkg/connector/mclient.go:52
↓ 1 callersFunctionPackAnimatedSticker
(data []byte)
pkg/msgconv/wa-sticker.go:241
↓ 1 callersFunctionParseMediaID
(mediaID networkid.MediaID)
pkg/waid/mediaid.go:113
↓ 1 callersMethodPollStartToWhatsApp
( ctx context.Context, content *event.PollStartEventContent, replyTo *database.Message, portal *bridgev2.P
pkg/msgconv/matrixpoll.go:64
↓ 1 callersMethodPollVoteToWhatsApp
( ctx context.Context, client *whatsmeow.Client, content *event.PollResponseEventContent, pollMsg *databas
pkg/msgconv/matrixpoll.go:107
↓ 1 callersMethodPostProcess
()
pkg/connector/config.go:91
↓ 1 callersMethodStart
(ctx context.Context)
pkg/connector/login.go:129
↓ 1 callersMethodSubmitUserInput
(ctx context.Context, input map[string]string)
pkg/connector/login.go:184
↓ 1 callersMethodaddMentions
(ctx context.Context, mentionedJID []string, into *event.MessageEventContent)
pkg/msgconv/from-whatsapp.go:100
↓ 1 callersMethodapplyChatSettings
(ctx context.Context, chatID types.JID, info *bridgev2.ChatInfo)
pkg/connector/chatinfo.go:96
↓ 1 callersMethodapplyHistoryInfo
(info *bridgev2.ChatInfo, conv *wadb.Conversation)
pkg/connector/chatinfo.go:112
↓ 1 callersMethodconstructGroupInviteMessage
( ctx context.Context, content *event.MessageEventContent, inviteMeta map[string]any, contextInfo *waE2E.C
pkg/msgconv/from-matrix.go:347
↓ 1 callersMethodconstructMediaMessage
( ctx context.Context, content *event.MessageEventContent, evt *event.Event, uploaded *whatsmeow.UploadRes
pkg/msgconv/from-matrix.go:173
↓ 1 callersMethodconstructTextMessage
( ctx context.Context, content *event.MessageEventContent, raw map[string]any, contextInfo *waE2E.ContextI
pkg/msgconv/from-matrix.go:324
↓ 1 callersMethodconvertAlbumMessage
(ctx context.Context, msg *waE2E.AlbumMessage)
pkg/msgconv/wa-media.go:129
↓ 1 callersMethodconvertAnimatedSticker
(ctx context.Context, fileInfo *PreparedMedia, data []byte)
pkg/msgconv/wa-sticker.go:307
↓ 1 callersMethodconvertButtonsMessage
(ctx context.Context, info *types.MessageInfo, msg *waE2E.ButtonsMessage)
pkg/msgconv/wa-business.go:173
↓ 1 callersMethodconvertButtonsResponseMessage
(ctx context.Context, msg *waE2E.ButtonsResponseMessage)
pkg/msgconv/wa-business.go:203
↓ 1 callersMethodconvertContactMessage
(ctx context.Context, msg *waE2E.ContactMessage)
pkg/msgconv/wa-contact.go:29
↓ 1 callersMethodconvertContactsArrayMessage
(ctx context.Context, msg *waE2E.ContactsArrayMessage)
pkg/msgconv/wa-contact.go:67
↓ 1 callersMethodconvertEphemeralSettingMessage
(ctx context.Context, msg *waE2E.ProtocolMessage, ts time.Time, isBackfill bool)
pkg/msgconv/wa-misc.go:208
↓ 1 callersMethodconvertEventMessage
(ctx context.Context, msg *waE2E.EventMessage)
pkg/msgconv/wa-misc.go:288
↓ 1 callersMethodconvertGroupInviteMessage
(ctx context.Context, info *types.MessageInfo, msg *waE2E.GroupInviteMessage)
pkg/msgconv/wa-misc.go:82
↓ 1 callersMethodconvertHistorySyncMessage
( ctx context.Context, portal *bridgev2.Portal, info *types.MessageInfo, msg, rawMsg *waE2E.Message, isViewOn
pkg/connector/backfill.go:742
↓ 1 callersMethodconvertInteractiveResponseMessage
(ctx context.Context, msg *waE2E.InteractiveResponseMessage)
pkg/msgconv/wa-business.go:160
↓ 1 callersMethodconvertKeepInChatMessage
(ctx context.Context, msg *waE2E.KeepInChatMessage)
pkg/msgconv/wa-misc.go:339
↓ 1 callersMethodconvertListMessage
(ctx context.Context, msg *waE2E.ListMessage)
pkg/msgconv/wa-business.go:256
↓ 1 callersMethodconvertListResponseMessage
(ctx context.Context, msg *waE2E.ListResponseMessage)
pkg/msgconv/wa-business.go:305
↓ 1 callersMethodconvertLiveLocationMessage
(ctx context.Context, msg *waE2E.LiveLocationMessage)
pkg/msgconv/wa-location.go:83
↓ 1 callersMethodconvertLocationMessage
(ctx context.Context, msg *waE2E.LocationMessage)
pkg/msgconv/wa-location.go:33
↓ 1 callersMethodconvertMessageHistoryNotice
(ctx context.Context, info *types.MessageInfo, msg *waE2E.MessageHistoryNotice)
pkg/msgconv/wa-misc.go:178
↓ 1 callersMethodconvertPinInChatMessage
(ctx context.Context, msg *waE2E.PinInChatMessage)
pkg/msgconv/wa-misc.go:324
↓ 1 callersMethodconvertPlaceholderMessage
(ctx context.Context, rawMsg *waE2E.Message)
pkg/msgconv/wa-misc.go:67
↓ 1 callersMethodconvertPollUpdateMessage
(ctx context.Context, info *types.MessageInfo, msg *waE2E.PollUpdateMessage)
pkg/msgconv/wa-poll.go:173
↓ 1 callersMethodconvertRichResponseMessage
(ctx context.Context, msg *waE2E.AIRichResponseMessage)
pkg/msgconv/wa-misc.go:354
↓ 1 callersMethodconvertTemplateButtonReplyMessage
(ctx context.Context, msg *waE2E.TemplateButtonReplyMessage)
pkg/msgconv/wa-business.go:95
↓ 1 callersMethodconvertTextMessage
(ctx context.Context, msg *waE2E.Message)
pkg/msgconv/wa-text.go:32
↓ 1 callersMethodconvertToJPEG
(webpImage []byte)
pkg/msgconv/from-matrix.go:437
↓ 1 callersMethodconvertToWebP
(img []byte)
pkg/msgconv/from-matrix.go:451
↓ 1 callersMethodconvertURLPreviewToBeeper
(ctx context.Context, msg *waE2E.ExtendedTextMessage)
pkg/msgconv/urlpreview.go:38
↓ 1 callersMethodconvertURLPreviewToWhatsApp
(ctx context.Context, content *event.MessageEventContent, dest *waE2E.ExtendedTextMessage)
pkg/msgconv/urlpreview.go:91
↓ 1 callersMethodcreatePortalsFromHistorySync
(ctx context.Context)
pkg/connector/backfill.go:358
↓ 1 callersMethoddeleteLIDDMsMigration
(ctx context.Context)
pkg/connector/connector.go:167
← previousnext →101–200 of 412, ranked by callers