Skip to main content

whatsapp_rust/
lib.rs

1pub use wacore::{iq::privacy as privacy_settings, proto_helpers, store::traits};
2pub use wacore_binary::builder::NodeBuilder;
3pub use wacore_binary::jid::Jid;
4pub use waproto;
5
6pub mod cache;
7#[cfg(not(feature = "moka-cache"))]
8pub mod portable_cache;
9
10pub mod cache_config;
11pub use cache_config::{CacheConfig, CacheEntryConfig, CacheStores};
12pub mod cache_store;
13pub use cache_store::CacheStore;
14pub mod http;
15pub mod types;
16
17pub mod client;
18pub use client::Client;
19#[cfg(feature = "debug-diagnostics")]
20pub use client::MemoryDiagnostics;
21pub use client::NodeFilter;
22pub mod download;
23pub mod handlers;
24pub use handlers::chatstate::ChatStateEvent;
25pub mod handshake;
26pub mod jid_utils;
27pub mod keepalive;
28pub mod mediaconn;
29pub mod message;
30pub mod pair;
31pub mod pair_code;
32pub mod request;
33#[cfg(feature = "tokio-runtime")]
34pub mod runtime_impl;
35#[cfg(feature = "tokio-runtime")]
36pub use runtime_impl::TokioRuntime;
37pub use wacore::runtime::Runtime;
38pub mod send;
39pub use send::{RevokeType, SendOptions};
40pub mod session;
41pub mod socket;
42pub mod store;
43pub mod transport;
44pub mod upload;
45
46pub mod pdo;
47pub mod prekeys;
48pub mod receipt;
49pub mod retry;
50pub mod unified_session;
51
52pub mod appstate_sync;
53pub mod history_sync;
54pub mod usync;
55
56pub mod features;
57pub use features::{
58    Blocking, BlocklistEntry, ChatActions, ChatStateType, Chatstate, Community, CommunitySubgroup,
59    ContactInfo, Contacts, CreateCommunityOptions, CreateCommunityResult, CreateGroupResult,
60    GroupCreateOptions, GroupDescription, GroupMetadata, GroupParticipant, GroupParticipantOptions,
61    GroupSubject, GroupType, Groups, IsOnWhatsAppResult, JoinGroupResult, LinkSubgroupsResult,
62    MediaRetryResult, MediaReupload, MediaReuploadRequest, MemberAddMode, MemberLinkMode,
63    MembershipApprovalMode, MembershipRequest, Mex, MexError, MexErrorExtensions, MexRequest,
64    MexResponse, Newsletter, NewsletterMessage, NewsletterMetadata, NewsletterReactionCount,
65    NewsletterRole, NewsletterState, NewsletterVerification, ParticipantChangeResponse, Presence,
66    PresenceError, PresenceStatus, Profile, ProfilePicture, SetProfilePictureResponse, Status,
67    StatusPrivacySetting, StatusSendOptions, SyncActionMessageRange, TcToken,
68    UnlinkSubgroupsResult, UserInfo, group_type, message_key, message_range,
69};
70
71pub mod bot;
72pub mod lid_pn_cache;
73pub mod spam_report;
74pub mod sync_task;
75pub mod version;
76
77pub use spam_report::{SpamFlow, SpamReportRequest, SpamReportResult};
78
79#[cfg(test)]
80pub mod test_utils;