Struct telebot::bot::RcBot[][src]

pub struct RcBot {
    pub inner: Rc<Bot>,
}

A clonable, single threaded bot

The outer API gets implemented on RcBot

Fields

Methods

impl RcBot
[src]

impl RcBot
[src]

Sets the update interval to an integer in milliseconds

Sets the timeout interval for long polling

Creates a new command and returns a stream which will yield a message when the command is send

Returns a stream which will yield a message when none of previously registered commands matches

Register a new commnd

The main update loop, the update function is called every update_interval milliseconds When an update is available the last_id will be updated and the message is filtered for commands The message is forwarded to the returned stream if no command was found

helper function to start the event loop

Trait Implementations

impl Clone for RcBot
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl FunctionGetMe for RcBot
[src]

impl FunctionGetUpdates for RcBot
[src]

impl FunctionSendMessage for RcBot
[src]

impl FunctionSendPhoto for RcBot
[src]

impl FunctionSendAudio for RcBot
[src]

impl FunctionSendDocument for RcBot
[src]

impl FunctionSendSticker for RcBot
[src]

impl FunctionSendVideo for RcBot
[src]

impl FunctionSendVoice for RcBot
[src]

impl FunctionSendMediaGroup for RcBot
[src]

impl FunctionSendLocation for RcBot
[src]

impl FunctionSendVenue for RcBot
[src]

impl FunctionSendContact for RcBot
[src]

impl FunctionSendAction for RcBot
[src]

impl FunctionSendGame for RcBot
[src]

impl FunctionSetGameScore for RcBot
[src]

impl FunctionGetGameHighScores for RcBot
[src]

impl FunctionGetUserProfilePhotos for RcBot
[src]

impl FunctionGetFile for RcBot
[src]

impl FunctionKickChatMember for RcBot
[src]

impl FunctionLeaveChat for RcBot
[src]

impl FunctionUnbanChatMember for RcBot
[src]

impl FunctionRestrictChatMember for RcBot
[src]

impl FunctionPromoteChatMember for RcBot
[src]

impl FunctionDeleteChatPhoto for RcBot
[src]

impl FunctionSetChatTitle for RcBot
[src]

impl FunctionSetChatDescription for RcBot
[src]

impl FunctionPinChatMessage for RcBot
[src]

impl FunctionUnpinChatMessage for RcBot
[src]

impl FunctionGetChat for RcBot
[src]

impl FunctionGetChatAdministrators for RcBot
[src]

impl FunctionGetChatMemberCounts for RcBot
[src]

impl FunctionGetChatMember for RcBot
[src]

impl FunctionAnswerCallbackQuery for RcBot
[src]

impl FunctionAnswerInlineQuery for RcBot
[src]

impl FunctionEditMessageText for RcBot
[src]

impl FunctionEditMessageCaption for RcBot
[src]

impl FunctionEditMessageReplyMarkup for RcBot
[src]

impl FunctionDeleteMessage for RcBot
[src]

impl FunctionCreateNewStickerSet for RcBot
[src]

impl FunctionAddStickerToSet for RcBot
[src]

impl FunctionDeleteStickerFromSet for RcBot
[src]

Auto Trait Implementations

impl !Send for RcBot

impl !Sync for RcBot