mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
Merge pull request #38 from async-telegram-bot/addActionTemplates
add action templates to mod.rs
This commit is contained in:
commit
c1abd14bf5
7 changed files with 54 additions and 0 deletions
|
@ -22,6 +22,12 @@ pub use self::{
|
||||||
send_photo::SendPhoto, send_poll::SendPoll, send_venue::SendVenue,
|
send_photo::SendPhoto, send_poll::SendPoll, send_venue::SendVenue,
|
||||||
stop_message_live_location::StopMessageLiveLocation,
|
stop_message_live_location::StopMessageLiveLocation,
|
||||||
unban_chat_member::UnbanChatMember,
|
unban_chat_member::UnbanChatMember,
|
||||||
|
promote_chat_member::PromoteChatMember,
|
||||||
|
send_animation::SendAnimation,
|
||||||
|
send_document::SendDocument,
|
||||||
|
send_video::SendVideo,
|
||||||
|
send_video_note::SendVideoNote,
|
||||||
|
send_voice::SendVoice,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub type ResponseResult<T> = Result<T, RequestError>;
|
pub type ResponseResult<T> = Result<T, RequestError>;
|
||||||
|
@ -103,3 +109,9 @@ mod send_poll;
|
||||||
mod send_venue;
|
mod send_venue;
|
||||||
mod stop_message_live_location;
|
mod stop_message_live_location;
|
||||||
mod unban_chat_member;
|
mod unban_chat_member;
|
||||||
|
mod promote_chat_member;
|
||||||
|
mod send_animation;
|
||||||
|
mod send_document;
|
||||||
|
mod send_video;
|
||||||
|
mod send_video_note;
|
||||||
|
mod send_voice;
|
7
src/requests/promote_chat_member.rs
Normal file
7
src/requests/promote_chat_member.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
use crate::requests::RequestContext;
|
||||||
|
///TODO: add implementation
|
||||||
|
#[derive(Debug, Clone, Serialize)]
|
||||||
|
pub struct PromoteChatMember<'a> {
|
||||||
|
#[serde(skip_serializing)]
|
||||||
|
ctx: RequestContext<'a>,
|
||||||
|
}
|
7
src/requests/send_animation.rs
Normal file
7
src/requests/send_animation.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
use crate::requests::RequestContext;
|
||||||
|
///TODO: add implementation
|
||||||
|
#[derive(Debug, Clone, Serialize)]
|
||||||
|
pub struct SendAnimation<'a> {
|
||||||
|
#[serde(skip_serializing)]
|
||||||
|
ctx: RequestContext<'a>,
|
||||||
|
}
|
7
src/requests/send_document.rs
Normal file
7
src/requests/send_document.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
use crate::requests::RequestContext;
|
||||||
|
///TODO: add implementation
|
||||||
|
#[derive(Debug, Clone, Serialize)]
|
||||||
|
pub struct SendDocument<'a> {
|
||||||
|
#[serde(skip_serializing)]
|
||||||
|
ctx: RequestContext<'a>,
|
||||||
|
}
|
7
src/requests/send_video.rs
Normal file
7
src/requests/send_video.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
use crate::requests::RequestContext;
|
||||||
|
///TODO: add implementation
|
||||||
|
#[derive(Debug, Clone, Serialize)]
|
||||||
|
pub struct SendVideo<'a> {
|
||||||
|
#[serde(skip_serializing)]
|
||||||
|
ctx: RequestContext<'a>,
|
||||||
|
}
|
7
src/requests/send_video_note.rs
Normal file
7
src/requests/send_video_note.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
use crate::requests::RequestContext;
|
||||||
|
///TODO: add implementation
|
||||||
|
#[derive(Debug, Clone, Serialize)]
|
||||||
|
pub struct SendVideoNote<'a> {
|
||||||
|
#[serde(skip_serializing)]
|
||||||
|
ctx: RequestContext<'a>,
|
||||||
|
}
|
7
src/requests/send_voice.rs
Normal file
7
src/requests/send_voice.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
use crate::requests::RequestContext;
|
||||||
|
///TODO: add implementation
|
||||||
|
#[derive(Debug, Clone, Serialize)]
|
||||||
|
pub struct SendVoice<'a> {
|
||||||
|
#[serde(skip_serializing)]
|
||||||
|
ctx: RequestContext<'a>,
|
||||||
|
}
|
Loading…
Reference in a new issue