mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
export implemented types
This commit is contained in:
parent
cd7ecb2a66
commit
3aac9a43c5
4 changed files with 20 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
|
||||||
use crate::core::types::MessageEntity;
|
use crate::core::types::{MessageEntity, PhotoSize, Animation};
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Clone)]
|
#[derive(Debug, Deserialize, Clone)]
|
||||||
/// This object represents a game. Use BotFather to create and edit games, their short names
|
/// This object represents a game. Use BotFather to create and edit games, their short names
|
||||||
|
|
|
@ -2,13 +2,16 @@ use self::not_implemented_types::*;
|
||||||
pub use self::{
|
pub use self::{
|
||||||
answer_pre_checkout_query::AnswerPreCheckoutQuery,
|
answer_pre_checkout_query::AnswerPreCheckoutQuery,
|
||||||
answer_shipping_query::AnswerShippingQuery,
|
answer_shipping_query::AnswerShippingQuery,
|
||||||
|
animation::Animation,
|
||||||
audio::Audio,
|
audio::Audio,
|
||||||
chat::{Chat, ChatKind, NonPrivateChatKind},
|
chat::{Chat, ChatKind, NonPrivateChatKind},
|
||||||
chat_member::ChatMember,
|
chat_member::ChatMember,
|
||||||
chat_permissions::ChatPermissions,
|
chat_permissions::ChatPermissions,
|
||||||
chat_photo::ChatPhoto,
|
chat_photo::ChatPhoto,
|
||||||
|
contact::Contact,
|
||||||
document::Document,
|
document::Document,
|
||||||
force_reply::ForceReply,
|
force_reply::ForceReply,
|
||||||
|
game::Game,
|
||||||
inline_keyboard_button::{InlineKeyboardButton, InlineKeyboardButtonKind},
|
inline_keyboard_button::{InlineKeyboardButton, InlineKeyboardButtonKind},
|
||||||
inline_keyboard_markup::InlineKeyboardMarkup,
|
inline_keyboard_markup::InlineKeyboardMarkup,
|
||||||
input_file::InputFile,
|
input_file::InputFile,
|
||||||
|
@ -16,6 +19,8 @@ pub use self::{
|
||||||
invoice::Invoice,
|
invoice::Invoice,
|
||||||
keyboard_button::KeyboardButton,
|
keyboard_button::KeyboardButton,
|
||||||
label_price::LabeledPrice,
|
label_price::LabeledPrice,
|
||||||
|
location::Location,
|
||||||
|
mask_position::MaskPosition,
|
||||||
message::{
|
message::{
|
||||||
ForwardKind, ForwardedFrom, MediaKind, Message, MessageKind, Sender,
|
ForwardKind, ForwardedFrom, MediaKind, Message, MessageKind, Sender,
|
||||||
},
|
},
|
||||||
|
@ -36,20 +41,13 @@ pub use self::{
|
||||||
sticker::Sticker,
|
sticker::Sticker,
|
||||||
successful_payment::SuccessfulPayment,
|
successful_payment::SuccessfulPayment,
|
||||||
user::User,
|
user::User,
|
||||||
|
venue::Venue,
|
||||||
video::Video,
|
video::Video,
|
||||||
reply_markup::ReplyMarkup,
|
video_note::VideoNote,
|
||||||
force_reply::ForceReply,
|
voice::Voice,
|
||||||
inline_keyboard_button::InlineKeyboardButton,
|
|
||||||
inline_keyboard_markup::InlineKeyboardMarkup,
|
|
||||||
reply_keyboard_remove::ReplyKeyboardRemove,
|
|
||||||
reply_keyboard_markup::ReplyKeyboardMarkup,
|
|
||||||
keyboard_button::KeyboardButton,
|
|
||||||
update::{Update, UpdateKind},
|
|
||||||
chosen_inline_result::ChosenInlineResult,
|
|
||||||
location::Location,
|
|
||||||
callback_query::CallbackQuery,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mod animation;
|
||||||
mod answer_pre_checkout_query;
|
mod answer_pre_checkout_query;
|
||||||
mod answer_shipping_query;
|
mod answer_shipping_query;
|
||||||
mod audio;
|
mod audio;
|
||||||
|
@ -57,8 +55,10 @@ mod chat;
|
||||||
mod chat_member;
|
mod chat_member;
|
||||||
mod chat_permissions;
|
mod chat_permissions;
|
||||||
mod chat_photo;
|
mod chat_photo;
|
||||||
|
mod contact;
|
||||||
mod document;
|
mod document;
|
||||||
mod force_reply;
|
mod force_reply;
|
||||||
|
mod game;
|
||||||
mod inline_keyboard_button;
|
mod inline_keyboard_button;
|
||||||
mod inline_keyboard_markup;
|
mod inline_keyboard_markup;
|
||||||
mod input_file;
|
mod input_file;
|
||||||
|
@ -66,6 +66,8 @@ mod input_media;
|
||||||
mod invoice;
|
mod invoice;
|
||||||
mod keyboard_button;
|
mod keyboard_button;
|
||||||
mod label_price;
|
mod label_price;
|
||||||
|
mod location;
|
||||||
|
mod mask_position;
|
||||||
mod message;
|
mod message;
|
||||||
mod message_entity;
|
mod message_entity;
|
||||||
mod not_implemented_types;
|
mod not_implemented_types;
|
||||||
|
@ -85,8 +87,7 @@ mod shipping_query;
|
||||||
mod sticker;
|
mod sticker;
|
||||||
mod successful_payment;
|
mod successful_payment;
|
||||||
mod user;
|
mod user;
|
||||||
|
mod venue;
|
||||||
mod video;
|
mod video;
|
||||||
mod update;
|
mod video_note;
|
||||||
mod chosen_inline_result;
|
mod voice;
|
||||||
mod location;
|
|
||||||
mod callback_query;
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
use crate::core::types::PhotoSize;
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Clone)]
|
#[derive(Debug, Deserialize, Clone)]
|
||||||
/// This object represents a [video message](https://telegram.org/blog/video-messages-and-telescope)
|
/// This object represents a [video message](https://telegram.org/blog/video-messages-and-telescope)
|
||||||
/// (available in Telegram apps as of v.4.0).
|
/// (available in Telegram apps as of v.4.0).
|
||||||
struct VideoNote {
|
pub struct VideoNote {
|
||||||
/// Identifier for this file
|
/// Identifier for this file
|
||||||
pub file_id: String,
|
pub file_id: String,
|
||||||
/// Video width and height (diameter of the video message) as defined by sender
|
/// Video width and height (diameter of the video message) as defined by sender
|
||||||
|
|
|
@ -2,7 +2,7 @@ use serde::Deserialize;
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Clone)]
|
#[derive(Debug, Deserialize, Clone)]
|
||||||
/// This object represents a voice note.
|
/// This object represents a voice note.
|
||||||
struct Voice {
|
pub struct Voice {
|
||||||
/// Identifier for this file
|
/// Identifier for this file
|
||||||
pub file_id: String,
|
pub file_id: String,
|
||||||
/// Duration of the audio in seconds as defined by sender
|
/// Duration of the audio in seconds as defined by sender
|
||||||
|
|
Loading…
Reference in a new issue