grammers_client/types/
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//! Custom types extending those provided by Telegram.
10//!
11//! A lot of fields in the types exported from this module are currently public even though
12//! they directly uses `grammers-tl-types`. This will probably change before the 1.0 release.
13pub mod action;
14pub mod attributes;
15pub mod button;
16pub mod callback_query;
17pub mod chat;
18pub mod chat_map;
19pub mod chats;
20pub mod dialog;
21pub mod downloadable;
22pub mod inline;
23pub mod input_media;
24pub mod input_message;
25pub mod iter_buffer;
26pub mod login_token;
27pub mod media;
28pub mod message;
29pub mod message_deletion;
30pub mod participant;
31pub mod password_token;
32pub mod permissions;
33pub mod photo_sizes;
34pub mod reactions;
35pub mod reply_markup;
36pub mod terms_of_service;
37pub mod update;
38
39pub use action::ActionSender;
40pub use attributes::Attribute;
41pub use callback_query::CallbackQuery;
42pub use chat::{Channel, Chat, Group, PackedChat, Platform, RestrictionReason, User};
43pub use chat_map::ChatMap;
44pub(crate) use chat_map::Peer;
45pub use chats::{AdminRightsBuilder, BannedRightsBuilder};
46pub use dialog::Dialog;
47pub use downloadable::{ChatPhoto, Downloadable, UserProfilePhoto};
48pub use inline::query::InlineQuery;
49pub use inline::send::InlineSend;
50pub use input_media::InputMedia;
51pub use input_message::InputMessage;
52pub use iter_buffer::IterBuffer;
53pub use login_token::LoginToken;
54pub(crate) use media::Uploaded;
55pub use media::{Media, Photo};
56pub use message::Message;
57pub use message_deletion::MessageDeletion;
58pub use participant::{Participant, Role};
59pub use password_token::PasswordToken;
60pub use permissions::{Permissions, Restrictions};
61pub use reactions::InputReactions;
62pub(crate) use reply_markup::ReplyMarkup;
63pub use terms_of_service::TermsOfService;
64pub use update::Update;