Skip to main content

grammers_client/client/
mod.rs

1// Copyright 2020 - developers of the `grammers` project.
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9//! Contains client-specific configuration and types.
10
11mod auth;
12mod bots;
13mod chats;
14#[allow(clippy::module_inception)]
15mod client;
16mod dialogs;
17mod files;
18mod iter_buffer;
19mod messages;
20mod net;
21mod retry_policy;
22mod updates;
23
24pub use auth::{LoginToken, PasswordToken, SignInError};
25pub use bots::{InlineResult, InlineResultIter};
26pub use chats::{ParticipantIter, ParticipantPermissions, PeerSearchItem, ProfilePhotoIter};
27pub(crate) use client::ClientInner;
28pub use client::{Client, ClientConfiguration, UpdatesConfiguration};
29pub use dialogs::DialogIter;
30pub use files::DownloadIter;
31pub use iter_buffer::IterBuffer;
32pub use messages::{GlobalSearchIter, MessageIter, SearchIter};
33pub use retry_policy::{AutoSleep, NoRetries, RetryContext, RetryPolicy};
34pub use updates::UpdateStream;