[][src]Struct actix_telegram::TelegramApi

pub struct TelegramApi { /* fields omitted */ }

Methods

impl TelegramApi
[src]

pub fn new(token: String, timeout: u16) -> Self
[src]

pub fn send_request<T, R>(
    token: &str,
    method: &str,
    timeout: Duration,
    item: &T
) -> Box<dyn Future<Item = R, Error = ()>> where
    R: DeserializeOwned + Debug + 'static,
    T: Serialize
[src]

pub fn send_multipart_request<R>(
    token: &str,
    method: &str,
    timeout: Duration,
    item: Form
) -> Box<dyn Future<Item = R, Error = ()>> where
    R: DeserializeOwned + Debug + 'static, 
[src]

Trait Implementations

impl Actor for TelegramApi
[src]

type Context = Context<Self>

Actor execution context type

fn stopping(&mut self, ctx: &mut Self::Context) -> Running
[src]

Method is called after an actor is in Actor::Stopping state. There could be several reasons for stopping. Context::stop get called by the actor itself. All addresses to current actor get dropped and no more evented objects left in the context. Read more

fn start(self) -> Addr<Self> where
    Self: Actor<Context = Context<Self>>, 
[src]

Start new asynchronous actor, returns address of newly created actor. Read more

fn start_default() -> Addr<Self> where
    Self: Actor<Context = Context<Self>> + Default
[src]

Start new asynchronous actor, returns address of newly created actor.

fn create<F>(f: F) -> Addr<Self> where
    F: FnOnce(&mut Context<Self>) -> Self + 'static,
    Self: Actor<Context = Context<Self>>, 
[src]

Use create method, if you need Context object during actor initialization. Read more

impl Handler<DeleteWebhook> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<EditMessageCaption> for TelegramApi
[src]

type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>

The type of value that this handle will return

impl Handler<EditMessageText> for TelegramApi
[src]

type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>

The type of value that this handle will return

impl Handler<GetMe> for TelegramApi
[src]

type Result = Box<dyn Future<Item = User, Error = ()>>

The type of value that this handle will return

impl Handler<GetWebhookInfo> for TelegramApi
[src]

type Result = Box<dyn Future<Item = WebhookInfo, Error = ()>>

The type of value that this handle will return

impl Handler<OptimizedGetUpdates> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Vec<Update>, Error = ()>>

The type of value that this handle will return

impl Handler<SendAnimation> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SendAudio> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SendDocument> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SendMessage> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SendPhoto> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SendVideo> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SendVoice> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SetWebhook> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<AddStickerToSet> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<AnswerCallbackQuery> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<AnswerInlineQuery> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<AnswerPreCheckoutQuery> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<AnswerShippingQuery> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<CreateNewStickerSet> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<DeleteChatPhoto> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<DeleteChatStickerSet> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<DeleteMessage> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<DeleteStickerFromSet> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<EditMessageLiveLocation> for TelegramApi
[src]

type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>

The type of value that this handle will return

impl Handler<EditMessageMedia> for TelegramApi
[src]

type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>

The type of value that this handle will return

impl Handler<EditMessageReplyMarkup> for TelegramApi
[src]

type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>

The type of value that this handle will return

impl Handler<ExportChatInviteLink> for TelegramApi
[src]

type Result = Box<dyn Future<Item = String, Error = ()>>

The type of value that this handle will return

impl Handler<ForwardMessage> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<GetChat> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Chat, Error = ()>>

The type of value that this handle will return

impl Handler<GetChatAdministrators> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Vec<ChatMember>, Error = ()>>

The type of value that this handle will return

impl Handler<GetChatMember> for TelegramApi
[src]

type Result = Box<dyn Future<Item = ChatMember, Error = ()>>

The type of value that this handle will return

impl Handler<GetChatMembersCount> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Integer, Error = ()>>

The type of value that this handle will return

impl Handler<GetFile> for TelegramApi
[src]

type Result = Box<dyn Future<Item = File, Error = ()>>

The type of value that this handle will return

impl Handler<GetGameHighScores> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Vec<GameHighScore>, Error = ()>>

The type of value that this handle will return

impl Handler<GetStickerSet> for TelegramApi
[src]

type Result = Box<dyn Future<Item = StickerSet, Error = ()>>

The type of value that this handle will return

impl Handler<GetUpdates> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Vec<Update>, Error = ()>>

The type of value that this handle will return

impl Handler<GetUserProfilePhotos> for TelegramApi
[src]

type Result = Box<dyn Future<Item = UserProfilePhotos, Error = ()>>

The type of value that this handle will return

impl Handler<KickChatMember> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<LeaveChat> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<PinChatMessage> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<PromoteChatMember> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<RestrictChatMember> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<SendChatAction> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<SendContact> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SendGame> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SendInvoice> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SendLocation> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SendMediaGroup> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Vec<Message>, Error = ()>>

The type of value that this handle will return

impl Handler<SendSticker> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SendVenue> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SendVideoNote> for TelegramApi
[src]

type Result = Box<dyn Future<Item = Message, Error = ()>>

The type of value that this handle will return

impl Handler<SetChatDescription> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<SetChatPhoto> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<SetChatStickerSet> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<SetChatTitle> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<SetGameScore> for TelegramApi
[src]

type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>

The type of value that this handle will return

impl Handler<SetPassportDataErrors> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<SetStickerPositionInSet> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<StopMessageLiveLocation> for TelegramApi
[src]

type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>

The type of value that this handle will return

impl Handler<UnbanChatMember> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<UnpinChatMessage> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Handler<UploadStickerFile> for TelegramApi
[src]

type Result = Box<dyn Future<Item = File, Error = ()>>

The type of value that this handle will return

Auto Trait Implementations

impl Send for TelegramApi

impl Sync for TelegramApi

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T