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

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

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 FunctionMessage 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 FunctionSendLocation for RcBot
[src]

impl FunctionSendVenue for RcBot
[src]

impl FunctionSendContact for RcBot
[src]

impl FunctionSendAction 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 FunctionGetChat for RcBot
[src]

impl FunctionGetChatAdministrators for RcBot
[src]

impl FunctionGetChatMemberCounts for RcBot
[src]

impl FunctionGetChatMember for RcBot
[src]

impl FunctionAnwerCallbackQuery for RcBot
[src]

impl FunctionAnswerInlineQuery for RcBot
[src]