Skip to main content

Crate whatsapp_rust

Crate whatsapp_rust 

Source

Re-exports§

pub use cache_config::CacheConfig;
pub use cache_config::CacheEntryConfig;
pub use cache_config::CacheStores;
pub use client::Client;
pub use client::NodeFilter;
pub use handlers::chatstate::ChatStateEvent;
pub use runtime_impl::TokioRuntime;
pub use send::PinDuration;
pub use send::RevokeType;
pub use send::SendOptions;
pub use send::SendResult;
pub use upload::UploadOptions;
pub use features::BatchGroupResult;
pub use features::Blocking;
pub use features::ChatActions;
pub use features::ChatStateType;
pub use features::Chatstate;
pub use features::Community;
pub use features::CommunitySubgroup;
pub use features::Contacts;
pub use features::CreateCommunityOptions;
pub use features::CreateCommunityResult;
pub use features::CreateGroupResult;
pub use features::EncryptedEdit;
pub use features::GroupMetadata;
pub use features::GroupParticipant;
pub use features::GroupType;
pub use features::Groups;
pub use features::LinkSubgroupsResult;
pub use features::MediaReupload;
pub use features::MediaReuploadRequest;
pub use features::Mex;
pub use features::MexError;
pub use features::MexRequest;
pub use features::Newsletter;
pub use features::NewsletterMessage;
pub use features::NewsletterMessageType;
pub use features::NewsletterMetadata;
pub use features::NewsletterReactionCount;
pub use features::NewsletterRole;
pub use features::NewsletterState;
pub use features::NewsletterVerification;
pub use features::Presence;
pub use features::PresenceError;
pub use features::PresenceStatus;
pub use features::Profile;
pub use features::Signal;
pub use features::Status;
pub use features::StatusPrivacySetting;
pub use features::StatusSendOptions;
pub use features::SyncActionMessageRange;
pub use features::TcToken;
pub use features::UnlinkSubgroupsResult;
pub use features::group_type;
pub use features::message_key;
pub use features::message_range;
pub use waproto;

Modules§

appstate_sync
bot
cache
Unified cache type that dispatches to moka or the portable implementation depending on the moka-cache feature flag.
cache_config
cache_store
Typed cache wrapper that dispatches to either moka (in-process) or a custom CacheStore backend (e.g., Redis).
client
download
features
handlers
handshake
history_sync
http
jid_utils
keepalive
lid_pn_cache
LID-PN (Linked ID to Phone Number) Cache
mediaconn
Media connection management.
message
pair
pair_code
Pair code authentication for phone number linking.
pdo
PDO (Peer Data Operation) support for requesting message content from the primary device.
prekeys
Pre-key management for Signal Protocol.
privacy_settings
Privacy settings IQ specification.
proto_helpers
receipt
request
retry
runtime_impl
send
session
socket
spam_report
Spam reporting feature.
sticker_pack
Sticker pack creation helpers.
store
sync_task
traits
Storage traits for the WhatsApp client.
transport
types
unified_session
Unified session telemetry manager.
upload
usync
User device list synchronization.
version
webp
WebP format utilities.

Macros§

require_from_jid
Extract the required from JID attribute from a NodeRef, or log a warning and return from the enclosing function.

Structs§

BlocklistEntry
A single blocklist entry from the response.
ClientProfile
CompactString
A CompactString is a compact string type that can be used almost anywhere a String or str can be used.
GroupCreateOptions
Options for creating a new group.
GroupDescription
A validated group description string.
GroupParticipantOptions
Options for a participant when creating a group.
GroupProfilePicture
A single group profile picture result.
GroupSubject
A validated group subject string.
GrowthLockInfo
Growth lock info (system-managed, read-only).
IsOnWhatsAppResult
Jid
MembershipRequest
MexErrorExtensions
MEX GraphQL error extensions.
MexResponse
MEX GraphQL response.
NodeBuilder
OwnedNodeRef
A decoded node that owns its decompressed buffer. The inner NodeRef borrows string/byte payloads directly from the buffer, avoiding copies. Container allocations (attribute Vec, child Vec) still occur during decode.
ParticipantChangeResponse
Response for participant change operations.
ProfilePicture
Profile picture information.
SetProfilePictureResponse
Response from setting a profile picture.
SpamReportRequest
A request to report a message as spam.
SpamReportResult
The result of a spam report.
UserInfo
User information from usync.

Enums§

GroupJoinError
Error codes returned when joining a group via invite.
InviteInfoError
Error codes returned when querying invite group info.
JoinGroupResult
Result of joining a group via invite code.
MediaRetryResult
Result of a media retry request.
MemberAddMode
Member add mode for who can add participants.
MemberLinkMode
Member link mode for group invite links.
MemberShareHistoryMode
Who can share message history with new members.
MembershipApprovalMode
Membership approval mode for join requests.
ParticipantType
Participant type (admin level).
PictureType
Profile picture query type.
Server
Known WhatsApp server identifiers.
SpamFlow
The type of spam flow indicating the source of the report.

Traits§

CacheStore
Backend trait for pluggable cache storage.
Runtime
A runtime-agnostic abstraction over async executor capabilities.