Struct tg_botapi::BotApi
[−]
[src]
pub struct BotApi { /* fields omitted */ }
Methods
impl BotApi
[src]
fn new(bot_token: &str) -> BotApi
fn get_me(&self) -> Result<User, BotError>
fn get_updates(&self, params: &GetUpdates) -> Result<Vec<Update>, BotError>
fn send_message(&self, params: &SendMessage) -> Result<Message, BotError>
fn forward_message(&self, params: &ForwardMessage) -> Result<Message, BotError>
fn send_photo(&self, params: &SendPhoto) -> Result<Message, BotError>
fn send_audio(&self, params: &SendAudio) -> Result<Message, BotError>
fn send_document(&self, params: &SendDocument) -> Result<Message, BotError>
fn send_sticker(&self, params: &SendSticker) -> Result<Message, BotError>
fn send_video(&self, params: &SendVideo) -> Result<Message, BotError>
fn send_voice(&self, params: &SendVoice) -> Result<Message, BotError>
fn get_user_profile_photos(&self,
params: &GetUserProfilePhotos)
-> Result<UserProfilePhotos, BotError>
params: &GetUserProfilePhotos)
-> Result<UserProfilePhotos, BotError>
fn get_file(&self, params: &GetFile) -> Result<File, BotError>
fn kick_chat_member(&self, params: &KickChatMember) -> Result<bool, BotError>
fn leave_chat(&self, params: &LeaveChat) -> Result<bool, BotError>
fn unban_chat_member(&self, params: &UnbanChatMember) -> Result<bool, BotError>
fn get_chat(&self, params: &GetChat) -> Result<Chat, BotError>
fn get_chat_administrators(&self,
params: &GetChatAdministrators)
-> Result<Vec<ChatMember>, BotError>
params: &GetChatAdministrators)
-> Result<Vec<ChatMember>, BotError>
fn get_chat_members_count(&self,
params: &GetChatMembersCount)
-> Result<i64, BotError>
params: &GetChatMembersCount)
-> Result<i64, BotError>
fn get_chat_members(&self,
params: &GetChatMember)
-> Result<ChatMember, BotError>
params: &GetChatMember)
-> Result<ChatMember, BotError>
fn answer_callback_query(&self,
params: &AnswerCallbackQuery)
-> Result<bool, BotError>
params: &AnswerCallbackQuery)
-> Result<bool, BotError>
fn edit_message_text(&self,
params: &EditMessageText)
-> Result<MessageOrBool, BotError>
params: &EditMessageText)
-> Result<MessageOrBool, BotError>
fn edit_message_reply_markup(&self,
params: &EditMessageReplyMarkup)
-> Result<MessageOrBool, BotError>
params: &EditMessageReplyMarkup)
-> Result<MessageOrBool, BotError>
fn answer_inline_query(&self,
params: &AnswerInlineQuery)
-> Result<bool, BotError>
params: &AnswerInlineQuery)
-> Result<bool, BotError>
fn send_game(&self, params: &SendGame) -> Result<Message, BotError>
fn set_game_score(&self,
params: &SetGameScore)
-> Result<MessageOrBool, BotError>
params: &SetGameScore)
-> Result<MessageOrBool, BotError>
fn get_game_high_scores(&self,
params: &GetGameHighScores)
-> Result<Vec<GameHighScore>, BotError>
params: &GetGameHighScores)
-> Result<Vec<GameHighScore>, BotError>