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::RevokeType;
pub use send::SendOptions;
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::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::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::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.
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

Structs§

BlocklistEntry
A single blocklist entry from the response.
ContactInfo
Contact information from usync.
GroupCreateOptions
Options for creating a new group.
GroupDescription
A validated group description string.
GroupParticipantOptions
Options for a participant when creating a group.
GroupSubject
A validated group subject string.
IsOnWhatsAppResult
Result of checking if a phone number is on WhatsApp.
Jid
MembershipRequest
MexErrorExtensions
MEX GraphQL error extensions.
MexResponse
MEX GraphQL response.
NodeBuilder
ParticipantChangeResponse
Response for participant change operations (add/remove/promote/demote).
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§

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.
MembershipApprovalMode
Membership approval mode for join requests.
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.