Struct frankenstein::api::Api[][src]

pub struct Api { /* fields omitted */ }

Implementations

impl Api[src]

pub fn new(api_key: String) -> Self[src]

pub fn new_url(api_url: String) -> Self[src]

pub fn get_updates(
    &self,
    params: &GetUpdatesParams
) -> Result<MethodResponse<Vec<Update>>, Error>
[src]

pub fn send_message(
    &self,
    params: &SendMessageParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn set_webhook(
    &self,
    params: &SetWebhookParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn delete_webhook(
    &self,
    params: &DeleteWebhookParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn get_webhook_info(&self) -> Result<MethodResponse<WebhookInfo>, Error>[src]

pub fn get_me(&self) -> Result<MethodResponse<User>, Error>[src]

pub fn log_out(&self) -> Result<MethodResponse<bool>, Error>[src]

pub fn close(&self) -> Result<MethodResponse<bool>, Error>[src]

pub fn forward_message(
    &self,
    params: &ForwardMessageParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn copy_message(
    &self,
    params: &CopyMessageParams
) -> Result<MethodResponse<MessageId>, Error>
[src]

pub fn send_photo(
    &self,
    params: &SendPhotoParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn send_audio(
    &self,
    params: &SendAudioParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn send_media_group(
    &self,
    params: &SendMediaGroupParams
) -> Result<MethodResponse<Vec<Message>>, Error>
[src]

pub fn send_document(
    &self,
    params: &SendDocumentParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn send_video(
    &self,
    params: &SendVideoParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn send_animation(
    &self,
    params: &SendAnimationParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn send_voice(
    &self,
    params: &SendVoiceParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn send_video_note(
    &self,
    params: &SendVideoNoteParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn send_location(
    &self,
    params: &SendLocationParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn edit_message_live_location(
    &self,
    params: &EditMessageLiveLocationParams
) -> Result<EditMessageResponse, Error>
[src]

pub fn stop_message_live_location(
    &self,
    params: &StopMessageLiveLocationParams
) -> Result<EditMessageResponse, Error>
[src]

pub fn send_venue(
    &self,
    params: &SendVenueParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn send_contact(
    &self,
    params: &SendContactParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn send_poll(
    &self,
    params: &SendPollParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn send_dice(
    &self,
    params: &SendDiceParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn send_chat_action(
    &self,
    params: &SendChatActionParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn get_user_profile_photos(
    &self,
    params: &GetUserProfilePhotosParams
) -> Result<MethodResponse<UserProfilePhotos>, Error>
[src]

pub fn get_file(
    &self,
    params: &GetFileParams
) -> Result<MethodResponse<File>, Error>
[src]

pub fn kick_chat_member(
    &self,
    params: &KickChatMemberParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn unban_chat_member(
    &self,
    params: &UnbanChatMemberParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn restrict_chat_member(
    &self,
    params: &RestrictChatMemberParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn promote_chat_member(
    &self,
    params: &PromoteChatMemberParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn set_chat_administrator_custom_title(
    &self,
    params: &SetChatAdministratorCustomTitleParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn set_chat_permissions(
    &self,
    params: &SetChatPermissionsParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn set_chat_photo(
    &self,
    params: &SetChatPhotoParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn delete_chat_photo(
    &self,
    params: &DeleteChatPhotoParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn set_chat_title(
    &self,
    params: &SetChatTitleParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn set_chat_description(
    &self,
    params: &SetChatDescriptionParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn pin_chat_message(
    &self,
    params: &PinChatMessageParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn unpin_chat_message(
    &self,
    params: &UnpinChatMessageParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn leave_chat(
    &self,
    params: &LeaveChatParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn get_chat(
    &self,
    params: &GetChatParams
) -> Result<MethodResponse<Chat>, Error>
[src]

pub fn get_chat_administrators(
    &self,
    params: &GetChatAdministratorsParams
) -> Result<MethodResponse<Vec<ChatMember>>, Error>
[src]

pub fn get_chat_members_count(
    &self,
    params: &GetChatMembersCountParams
) -> Result<MethodResponse<usize>, Error>
[src]

pub fn get_chat_member(
    &self,
    params: &GetChatMemberParams
) -> Result<MethodResponse<ChatMember>, Error>
[src]

pub fn set_chat_sticker_set(
    &self,
    params: &SetChatStickerSetParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn delete_chat_sticker_set(
    &self,
    params: &DeleteChatStickerSetParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn answer_callback_query(
    &self,
    params: &AnswerCallbackQueryParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn set_my_commands(
    &self,
    params: &SetMyCommandsParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn get_my_commands(&self) -> Result<MethodResponse<Vec<BotCommand>>, Error>[src]

pub fn answer_inline_query(
    &self,
    params: &AnswerInlineQueryParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn edit_message_text(
    &self,
    params: &EditMessageTextParams
) -> Result<EditMessageResponse, Error>
[src]

pub fn edit_message_caption(
    &self,
    params: &EditMessageCaptionParams
) -> Result<EditMessageResponse, Error>
[src]

pub fn edit_message_media(
    &self,
    params: &EditMessageMediaParams
) -> Result<EditMessageResponse, Error>
[src]

pub fn edit_message_reply_markup(
    &self,
    params: &EditMessageReplyMarkupParams
) -> Result<EditMessageResponse, Error>
[src]

pub fn stop_poll(
    &self,
    params: &StopPollParams
) -> Result<MethodResponse<Poll>, Error>
[src]

pub fn delete_message(
    &self,
    params: &DeleteMessageParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn send_sticker(
    &self,
    params: &SendStickerParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn get_sticker_set(
    &self,
    params: &GetStickerSetParams
) -> Result<MethodResponse<StickerSet>, Error>
[src]

pub fn upload_sticker_file(
    &self,
    params: &UploadStickerFileParams
) -> Result<MethodResponse<File>, Error>
[src]

pub fn create_new_sticker_set(
    &self,
    params: &CreateNewStickerSetParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn add_sticker_to_set(
    &self,
    params: &AddStickerToSetParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn set_sticker_position_in_set(
    &self,
    params: &SetStickerPositionInSetParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn delete_sticker_from_set(
    &self,
    params: &DeleteStickerFromSetParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn set_sticker_set_thumb(
    &self,
    params: &SetStickerSetThumbParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn send_invoice(
    &self,
    params: &SendInvoiceParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn answer_shipping_query(
    &self,
    params: &AnswerShippingQueryParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn answer_pre_checkout_query(
    &self,
    params: &AnswerPreCheckoutQueryParams
) -> Result<MethodResponse<bool>, Error>
[src]

pub fn send_game(
    &self,
    params: &SendGameParams
) -> Result<MethodResponse<Message>, Error>
[src]

pub fn set_game_score(
    &self,
    params: &SetGameScoreParams
) -> Result<EditMessageResponse, Error>
[src]

pub fn get_game_high_scores(
    &self,
    params: &GetGameHighScoresParams
) -> Result<MethodResponse<Vec<GameHighScore>>, Error>
[src]

Trait Implementations

impl Debug for Api[src]

impl PartialEq<Api> for Api[src]

impl StructuralPartialEq for Api[src]

Auto Trait Implementations

impl RefUnwindSafe for Api

impl Send for Api

impl Sync for Api

impl Unpin for Api

impl UnwindSafe for Api

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,