Merge pull request #38 from async-telegram-bot/addActionTemplates

add action templates to mod.rs
This commit is contained in:
Mishko torop'izhko 2019-09-30 18:17:19 +03:00 committed by GitHub
commit c1abd14bf5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 54 additions and 0 deletions

View file

@ -22,6 +22,12 @@ pub use self::{
send_photo::SendPhoto, send_poll::SendPoll, send_venue::SendVenue,
stop_message_live_location::StopMessageLiveLocation,
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>;
@ -103,3 +109,9 @@ mod send_poll;
mod send_venue;
mod stop_message_live_location;
mod unban_chat_member;
mod promote_chat_member;
mod send_animation;
mod send_document;
mod send_video;
mod send_video_note;
mod send_voice;

View 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>,
}

View 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>,
}

View 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>,
}

View 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>,
}

View 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>,
}

View 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>,
}