Struct actix_telegram::TelegramApi [−][src]
pub struct TelegramApi { /* fields omitted */ }
Methods
impl TelegramApi
[src]
impl TelegramApi
pub fn new(token: String, timeout: u16) -> TelegramApi
[src]
pub fn new(token: String, timeout: u16) -> TelegramApi
pub fn send_request<T, R>(
token: &str,
method: &str,
timeout: Duration,
item: &T
) -> Box<Future<Item = R, Error = ()>> where
R: DeserializeOwned + Debug + 'static,
T: Serialize,
[src]
pub fn send_request<T, R>(
token: &str,
method: &str,
timeout: Duration,
item: &T
) -> Box<Future<Item = R, Error = ()>> where
R: DeserializeOwned + Debug + 'static,
T: Serialize,
pub fn send_multipart_request<R>(
token: &str,
method: &str,
timeout: Duration,
item: Form
) -> Box<Future<Item = R, Error = ()>> where
R: DeserializeOwned + Debug + 'static,
[src]
pub fn send_multipart_request<R>(
token: &str,
method: &str,
timeout: Duration,
item: Form
) -> Box<Future<Item = R, Error = ()>> where
R: DeserializeOwned + Debug + 'static,
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 started(&mut self, _ctx: &mut Context<Self>)
Method is called when actor get polled first time.
fn stopped(&mut self, _ctx: &mut Context<Self>)
[src]
fn stopped(&mut self, _ctx: &mut Context<Self>)
Method is called after an actor is stopped, it can be used to perform any needed cleanup work or spawning more actors. This is final state, after this call actor get dropped. Read more
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
[src]
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
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]
fn start(self) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
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]
fn start_default() -> Addr<Self> where
Self: Actor<Context = Context<Self>> + Default,
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]
fn create<F>(f: F) -> Addr<Self> where
F: FnOnce(&mut Context<Self>) -> Self + 'static,
Self: Actor<Context = Context<Self>>,
Use create
method, if you need Context
object during actor initialization. Read more
impl Handler<AddStickerToSet> for TelegramApi
[src]
impl Handler<AddStickerToSet> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: AddStickerToSet,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: AddStickerToSet,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<AnswerCallbackQuery> for TelegramApi
[src]
impl Handler<AnswerCallbackQuery> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: AnswerCallbackQuery,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: AnswerCallbackQuery,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<AnswerInlineQuery> for TelegramApi
[src]
impl Handler<AnswerInlineQuery> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: AnswerInlineQuery,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: AnswerInlineQuery,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<AnswerPreCheckoutQuery> for TelegramApi
[src]
impl Handler<AnswerPreCheckoutQuery> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: AnswerPreCheckoutQuery,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: AnswerPreCheckoutQuery,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<AnswerShippingQuery> for TelegramApi
[src]
impl Handler<AnswerShippingQuery> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: AnswerShippingQuery,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: AnswerShippingQuery,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<CreateNewStickerSet> for TelegramApi
[src]
impl Handler<CreateNewStickerSet> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: CreateNewStickerSet,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: CreateNewStickerSet,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<DeleteChatPhoto> for TelegramApi
[src]
impl Handler<DeleteChatPhoto> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: DeleteChatPhoto,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: DeleteChatPhoto,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<DeleteChatStickerSet> for TelegramApi
[src]
impl Handler<DeleteChatStickerSet> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: DeleteChatStickerSet,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: DeleteChatStickerSet,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<DeleteMessage> for TelegramApi
[src]
impl Handler<DeleteMessage> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: DeleteMessage,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: DeleteMessage,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<DeleteStickerFromSet> for TelegramApi
[src]
impl Handler<DeleteStickerFromSet> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: DeleteStickerFromSet,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: DeleteStickerFromSet,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<DeleteWebhook> for TelegramApi
[src]
impl Handler<DeleteWebhook> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: DeleteWebhook,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: DeleteWebhook,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<EditMessageCaption> for TelegramApi
[src]
impl Handler<EditMessageCaption> for TelegramApi
type Result = Box<Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: EditMessageCaption,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: EditMessageCaption,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<EditMessageLiveLocation> for TelegramApi
[src]
impl Handler<EditMessageLiveLocation> for TelegramApi
type Result = Box<Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: EditMessageLiveLocation,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: EditMessageLiveLocation,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<EditMessageMedia> for TelegramApi
[src]
impl Handler<EditMessageMedia> for TelegramApi
type Result = Box<Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: EditMessageMedia,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: EditMessageMedia,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<EditMessageReplyMarkup> for TelegramApi
[src]
impl Handler<EditMessageReplyMarkup> for TelegramApi
type Result = Box<Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: EditMessageReplyMarkup,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: EditMessageReplyMarkup,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<EditMessageText> for TelegramApi
[src]
impl Handler<EditMessageText> for TelegramApi
type Result = Box<Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: EditMessageText,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: EditMessageText,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<ExportChatInviteLink> for TelegramApi
[src]
impl Handler<ExportChatInviteLink> for TelegramApi
type Result = Box<Future<Item = String, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: ExportChatInviteLink,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: ExportChatInviteLink,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<ForwardMessage> for TelegramApi
[src]
impl Handler<ForwardMessage> for TelegramApi
type Result = Box<Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: ForwardMessage,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: ForwardMessage,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<GetChat> for TelegramApi
[src]
impl Handler<GetChat> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: GetChat, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<GetChatAdministrators> for TelegramApi
[src]
impl Handler<GetChatAdministrators> for TelegramApi
type Result = Box<Future<Item = Vec<ChatMember>, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: GetChatAdministrators,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: GetChatAdministrators,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<GetChatMember> for TelegramApi
[src]
impl Handler<GetChatMember> for TelegramApi
type Result = Box<Future<Item = ChatMember, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: GetChatMember,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: GetChatMember,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<GetChatMembersCount> for TelegramApi
[src]
impl Handler<GetChatMembersCount> for TelegramApi
type Result = Box<Future<Item = Integer, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: GetChatMembersCount,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: GetChatMembersCount,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<GetFile> for TelegramApi
[src]
impl Handler<GetFile> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: GetFile, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<GetGameHighScores> for TelegramApi
[src]
impl Handler<GetGameHighScores> for TelegramApi
type Result = Box<Future<Item = Vec<GameHighScore>, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: GetGameHighScores,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: GetGameHighScores,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<GetMe> for TelegramApi
[src]
impl Handler<GetMe> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: GetMe, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<GetStickerSet> for TelegramApi
[src]
impl Handler<GetStickerSet> for TelegramApi
type Result = Box<Future<Item = StickerSet, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: GetStickerSet,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: GetStickerSet,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<GetUpdates> for TelegramApi
[src]
impl Handler<GetUpdates> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: GetUpdates, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<GetUserProfilePhotos> for TelegramApi
[src]
impl Handler<GetUserProfilePhotos> for TelegramApi
type Result = Box<Future<Item = UserProfilePhotos, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: GetUserProfilePhotos,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: GetUserProfilePhotos,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<GetWebhookInfo> for TelegramApi
[src]
impl Handler<GetWebhookInfo> for TelegramApi
type Result = Box<Future<Item = WebhookInfo, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: GetWebhookInfo,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: GetWebhookInfo,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<KickChatMember> for TelegramApi
[src]
impl Handler<KickChatMember> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: KickChatMember,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: KickChatMember,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<LeaveChat> for TelegramApi
[src]
impl Handler<LeaveChat> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: LeaveChat, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<PinChatMessage> for TelegramApi
[src]
impl Handler<PinChatMessage> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: PinChatMessage,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: PinChatMessage,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<PromoteChatMember> for TelegramApi
[src]
impl Handler<PromoteChatMember> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: PromoteChatMember,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: PromoteChatMember,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<RestrictChatMember> for TelegramApi
[src]
impl Handler<RestrictChatMember> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: RestrictChatMember,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: RestrictChatMember,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendAnimation> for TelegramApi
[src]
impl Handler<SendAnimation> for TelegramApi
type Result = Box<Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SendAnimation,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SendAnimation,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendAudio> for TelegramApi
[src]
impl Handler<SendAudio> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: SendAudio, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendChatAction> for TelegramApi
[src]
impl Handler<SendChatAction> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SendChatAction,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SendChatAction,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendContact> for TelegramApi
[src]
impl Handler<SendContact> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: SendContact, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendDocument> for TelegramApi
[src]
impl Handler<SendDocument> for TelegramApi
type Result = Box<Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SendDocument,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SendDocument,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendGame> for TelegramApi
[src]
impl Handler<SendGame> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: SendGame, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendInvoice> for TelegramApi
[src]
impl Handler<SendInvoice> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: SendInvoice, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendLocation> for TelegramApi
[src]
impl Handler<SendLocation> for TelegramApi
type Result = Box<Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SendLocation,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SendLocation,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendMediaGroup> for TelegramApi
[src]
impl Handler<SendMediaGroup> for TelegramApi
type Result = Box<Future<Item = Vec<Message>, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SendMediaGroup,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SendMediaGroup,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendMessage> for TelegramApi
[src]
impl Handler<SendMessage> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: SendMessage, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendPhoto> for TelegramApi
[src]
impl Handler<SendPhoto> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: SendPhoto, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendSticker> for TelegramApi
[src]
impl Handler<SendSticker> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: SendSticker, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendVenue> for TelegramApi
[src]
impl Handler<SendVenue> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: SendVenue, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendVideo> for TelegramApi
[src]
impl Handler<SendVideo> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: SendVideo, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendVideoNote> for TelegramApi
[src]
impl Handler<SendVideoNote> for TelegramApi
type Result = Box<Future<Item = Message, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SendVideoNote,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SendVideoNote,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SendVoice> for TelegramApi
[src]
impl Handler<SendVoice> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: SendVoice, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SetChatDescription> for TelegramApi
[src]
impl Handler<SetChatDescription> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SetChatDescription,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SetChatDescription,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SetChatPhoto> for TelegramApi
[src]
impl Handler<SetChatPhoto> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SetChatPhoto,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SetChatPhoto,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SetChatStickerSet> for TelegramApi
[src]
impl Handler<SetChatStickerSet> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SetChatStickerSet,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SetChatStickerSet,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SetChatTitle> for TelegramApi
[src]
impl Handler<SetChatTitle> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SetChatTitle,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SetChatTitle,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SetGameScore> for TelegramApi
[src]
impl Handler<SetGameScore> for TelegramApi
type Result = Box<Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SetGameScore,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SetGameScore,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SetPassportDataErrors> for TelegramApi
[src]
impl Handler<SetPassportDataErrors> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SetPassportDataErrors,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SetPassportDataErrors,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SetStickerPositionInSet> for TelegramApi
[src]
impl Handler<SetStickerPositionInSet> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: SetStickerPositionInSet,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: SetStickerPositionInSet,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<SetWebhook> for TelegramApi
[src]
impl Handler<SetWebhook> for TelegramApi
type Result = Box<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]
fn handle(&mut self, msg: SetWebhook, _ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
impl Handler<StopMessageLiveLocation> for TelegramApi
[src]
impl Handler<StopMessageLiveLocation> for TelegramApi
type Result = Box<Future<Item = MessageOrTrue, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: StopMessageLiveLocation,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: StopMessageLiveLocation,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<UnbanChatMember> for TelegramApi
[src]
impl Handler<UnbanChatMember> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: UnbanChatMember,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: UnbanChatMember,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<UnpinChatMessage> for TelegramApi
[src]
impl Handler<UnpinChatMessage> for TelegramApi
type Result = Box<Future<Item = True, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: UnpinChatMessage,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: UnpinChatMessage,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<UploadStickerFile> for TelegramApi
[src]
impl Handler<UploadStickerFile> for TelegramApi
type Result = Box<Future<Item = File, Error = ()>>
The type of value that this handle will return
fn handle(
&mut self,
msg: UploadStickerFile,
_ctx: &mut Context<Self>
) -> Self::Result
[src]
fn handle(
&mut self,
msg: UploadStickerFile,
_ctx: &mut Context<Self>
) -> Self::Result
Method is called for every message received by this Actor
impl Handler<OptimizedGetUpdates> for TelegramApi
[src]
impl Handler<OptimizedGetUpdates> for TelegramApi
Auto Trait Implementations
impl Send for TelegramApi
impl Send for TelegramApi
impl Sync for TelegramApi
impl Sync for TelegramApi