Skip to main content

Crate whatsapp_rust

Crate whatsapp_rust 

Source

Re-exports§

pub use client::Client;
pub use handlers::chatstate::ChatStateEvent;
pub use send::RevokeType;
pub use send::SendOptions;
pub use features::Blocking;
pub use features::ChatStateType;
pub use features::Chatstate;
pub use features::Contacts;
pub use features::CreateGroupResult;
pub use features::GroupMetadata;
pub use features::GroupParticipant;
pub use features::Groups;
pub use features::Mex;
pub use features::MexError;
pub use features::MexRequest;
pub use features::Presence;
pub use features::PresenceStatus;
pub use features::Status;
pub use features::StatusPrivacySetting;
pub use features::StatusSendOptions;
pub use features::TcToken;
pub use waproto;

Modules§

appstate_sync
bot
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
send
session
Session management with deduplication for concurrent prekey fetches.
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
MexErrorExtensions
MEX GraphQL error extensions.
MexResponse
MEX GraphQL response.
NodeBuilder
ParticipantChangeResponse
Response for participant change operations (add/remove/promote/demote).
ProfilePicture
Profile picture information.
SpamReportRequest
A request to report a message as spam.
SpamReportResult
The result of a spam report.
UserInfo
User information from usync.

Enums§

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.