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]

[src]

impl RcBot
[src]

[src]

Sets the update interval to an integer in milliseconds

[src]

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

[src]

Register a new commnd

[src]

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

[src]

helper function to start the event loop

Trait Implementations

impl Clone for RcBot
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl FunctionGetMe for RcBot
[src]

impl FunctionGetUpdates for RcBot
[src]

impl FunctionMessage for RcBot
[src]

[src]

impl FunctionSendPhoto for RcBot
[src]

[src]

impl FunctionSendAudio for RcBot
[src]

[src]

impl FunctionSendDocument for RcBot
[src]

[src]

impl FunctionSendSticker for RcBot
[src]

[src]

impl FunctionSendVideo for RcBot
[src]

[src]

impl FunctionSendVoice for RcBot
[src]

[src]

impl FunctionSendLocation for RcBot
[src]

[src]

impl FunctionSendVenue for RcBot
[src]

[src]

impl FunctionSendContact for RcBot
[src]

[src]

impl FunctionSendAction for RcBot
[src]

[src]

impl FunctionGetUserProfilePhotos for RcBot
[src]

[src]

impl FunctionGetFile for RcBot
[src]

[src]

impl FunctionKickChatMember for RcBot
[src]

[src]

impl FunctionLeaveChat for RcBot
[src]

[src]

impl FunctionUnbanChatMember for RcBot
[src]

[src]

impl FunctionGetChat for RcBot
[src]

[src]

impl FunctionGetChatAdministrators for RcBot
[src]

impl FunctionGetChatMemberCounts for RcBot
[src]

[src]

impl FunctionGetChatMember for RcBot
[src]

[src]

impl FunctionAnswerCallbackQuery for RcBot
[src]

[src]

impl FunctionAnswerInlineQuery for RcBot
[src]

[src]