[−][src]Struct actix_telegram::TelegramApi
Methods
impl TelegramApi
[src]
impl TelegramApi
pub fn new(token: String, timeout: u16) -> Self | [src] |
pub fn send_request<T, R>( | [src] |
pub fn send_multipart_request<R>( | [src] |
Trait Implementations
impl Actor for TelegramApi
[src]
impl Actor for TelegramApi
type Context = Context<Self>
Actor execution context type
fn started(&mut self, _ctx: &mut Context<Self>) | [src] |
fn stopped(&mut self, _ctx: &mut Context<Self>) | [src] |
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 | [src] |
Start new asynchronous actor, returns address of newly created actor. Read more
fn start_default() -> Addr<Self> where | [src] |
Start new asynchronous actor, returns address of newly created actor.
fn create<F>(f: F) -> Addr<Self> where | [src] |
Use create
method, if you need Context
object during actor initialization. Read more
impl Handler<DeleteWebhook> for TelegramApi
[src]
impl Handler<DeleteWebhook> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<EditMessageCaption> for TelegramApi
[src]
impl Handler<EditMessageCaption> for TelegramApi
type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<EditMessageText> for TelegramApi
[src]
impl Handler<EditMessageText> for TelegramApi
type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<GetMe> for TelegramApi
[src]
impl Handler<GetMe> for TelegramApi
type Result = Box<dyn Future<Item = User, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: GetMe, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<GetWebhookInfo> for TelegramApi
[src]
impl Handler<GetWebhookInfo> for TelegramApi
type Result = Box<dyn Future<Item = WebhookInfo, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<OptimizedGetUpdates> for TelegramApi
[src]
impl Handler<OptimizedGetUpdates> for TelegramApi
type Result = Box<dyn Future<Item = Vec<Update>, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SendAnimation> for TelegramApi
[src]
impl Handler<SendAnimation> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SendAudio> for TelegramApi
[src]
impl Handler<SendAudio> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: SendAudio, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<SendDocument> for TelegramApi
[src]
impl Handler<SendDocument> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SendMessage> for TelegramApi
[src]
impl Handler<SendMessage> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: SendMessage, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<SendPhoto> for TelegramApi
[src]
impl Handler<SendPhoto> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: SendPhoto, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<SendVideo> for TelegramApi
[src]
impl Handler<SendVideo> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: SendVideo, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<SendVoice> for TelegramApi
[src]
impl Handler<SendVoice> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: SendVoice, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<SetWebhook> for TelegramApi
[src]
impl Handler<SetWebhook> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: SetWebhook, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<AddStickerToSet> for TelegramApi
[src]
impl Handler<AddStickerToSet> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<AnswerCallbackQuery> for TelegramApi
[src]
impl Handler<AnswerCallbackQuery> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<AnswerInlineQuery> for TelegramApi
[src]
impl Handler<AnswerInlineQuery> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<AnswerPreCheckoutQuery> for TelegramApi
[src]
impl Handler<AnswerPreCheckoutQuery> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<AnswerShippingQuery> for TelegramApi
[src]
impl Handler<AnswerShippingQuery> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<CreateNewStickerSet> for TelegramApi
[src]
impl Handler<CreateNewStickerSet> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<DeleteChatPhoto> for TelegramApi
[src]
impl Handler<DeleteChatPhoto> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<DeleteChatStickerSet> for TelegramApi
[src]
impl Handler<DeleteChatStickerSet> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<DeleteMessage> for TelegramApi
[src]
impl Handler<DeleteMessage> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<DeleteStickerFromSet> for TelegramApi
[src]
impl Handler<DeleteStickerFromSet> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<EditMessageLiveLocation> for TelegramApi
[src]
impl Handler<EditMessageLiveLocation> for TelegramApi
type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<EditMessageMedia> for TelegramApi
[src]
impl Handler<EditMessageMedia> for TelegramApi
type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<EditMessageReplyMarkup> for TelegramApi
[src]
impl Handler<EditMessageReplyMarkup> for TelegramApi
type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<ExportChatInviteLink> for TelegramApi
[src]
impl Handler<ExportChatInviteLink> for TelegramApi
type Result = Box<dyn Future<Item = String, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<ForwardMessage> for TelegramApi
[src]
impl Handler<ForwardMessage> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<GetChat> for TelegramApi
[src]
impl Handler<GetChat> for TelegramApi
type Result = Box<dyn Future<Item = Chat, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: GetChat, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<GetChatAdministrators> for TelegramApi
[src]
impl Handler<GetChatAdministrators> for TelegramApi
type Result = Box<dyn Future<Item = Vec<ChatMember>, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<GetChatMember> for TelegramApi
[src]
impl Handler<GetChatMember> for TelegramApi
type Result = Box<dyn Future<Item = ChatMember, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<GetChatMembersCount> for TelegramApi
[src]
impl Handler<GetChatMembersCount> for TelegramApi
type Result = Box<dyn Future<Item = Integer, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<GetFile> for TelegramApi
[src]
impl Handler<GetFile> for TelegramApi
type Result = Box<dyn Future<Item = File, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: GetFile, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<GetGameHighScores> for TelegramApi
[src]
impl Handler<GetGameHighScores> for TelegramApi
type Result = Box<dyn Future<Item = Vec<GameHighScore>, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<GetStickerSet> for TelegramApi
[src]
impl Handler<GetStickerSet> for TelegramApi
type Result = Box<dyn Future<Item = StickerSet, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<GetUpdates> for TelegramApi
[src]
impl Handler<GetUpdates> for TelegramApi
type Result = Box<dyn Future<Item = Vec<Update>, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: GetUpdates, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<GetUserProfilePhotos> for TelegramApi
[src]
impl Handler<GetUserProfilePhotos> for TelegramApi
type Result = Box<dyn Future<Item = UserProfilePhotos, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<KickChatMember> for TelegramApi
[src]
impl Handler<KickChatMember> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<LeaveChat> for TelegramApi
[src]
impl Handler<LeaveChat> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: LeaveChat, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<PinChatMessage> for TelegramApi
[src]
impl Handler<PinChatMessage> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<PromoteChatMember> for TelegramApi
[src]
impl Handler<PromoteChatMember> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<RestrictChatMember> for TelegramApi
[src]
impl Handler<RestrictChatMember> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SendChatAction> for TelegramApi
[src]
impl Handler<SendChatAction> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SendContact> for TelegramApi
[src]
impl Handler<SendContact> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: SendContact, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<SendGame> for TelegramApi
[src]
impl Handler<SendGame> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: SendGame, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<SendInvoice> for TelegramApi
[src]
impl Handler<SendInvoice> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: SendInvoice, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<SendLocation> for TelegramApi
[src]
impl Handler<SendLocation> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SendMediaGroup> for TelegramApi
[src]
impl Handler<SendMediaGroup> for TelegramApi
type Result = Box<dyn Future<Item = Vec<Message>, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SendSticker> for TelegramApi
[src]
impl Handler<SendSticker> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: SendSticker, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<SendVenue> for TelegramApi
[src]
impl Handler<SendVenue> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(&mut self, msg: SendVenue, _ctx: &mut Context<Self>) -> Self::Result | [src] |
impl Handler<SendVideoNote> for TelegramApi
[src]
impl Handler<SendVideoNote> for TelegramApi
type Result = Box<dyn Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SetChatDescription> for TelegramApi
[src]
impl Handler<SetChatDescription> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SetChatPhoto> for TelegramApi
[src]
impl Handler<SetChatPhoto> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SetChatStickerSet> for TelegramApi
[src]
impl Handler<SetChatStickerSet> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SetChatTitle> for TelegramApi
[src]
impl Handler<SetChatTitle> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SetGameScore> for TelegramApi
[src]
impl Handler<SetGameScore> for TelegramApi
type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SetPassportDataErrors> for TelegramApi
[src]
impl Handler<SetPassportDataErrors> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<SetStickerPositionInSet> for TelegramApi
[src]
impl Handler<SetStickerPositionInSet> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<StopMessageLiveLocation> for TelegramApi
[src]
impl Handler<StopMessageLiveLocation> for TelegramApi
type Result = Box<dyn Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<UnbanChatMember> for TelegramApi
[src]
impl Handler<UnbanChatMember> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<UnpinChatMessage> for TelegramApi
[src]
impl Handler<UnpinChatMessage> for TelegramApi
type Result = Box<dyn Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle( | [src] |
impl Handler<UploadStickerFile> for TelegramApi
[src]
impl Handler<UploadStickerFile> for TelegramApi
Auto Trait Implementations
impl Send for TelegramApi
impl Send for TelegramApi
impl Sync for TelegramApi
impl Sync for TelegramApi
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T