MCPcopy Create free account

hub / github.com/bytesnake/telebot / functions

Functions49 in github.com/bytesnake/telebot

↓ 14 callersMethodinto
(self)
src/functions.rs:26
↓ 9 callersMethodupdate_interval
Sets the update interval to an integer in milliseconds
src/bot.rs:202
↓ 8 callersMethodrun_with
(self, other: I)
src/bot.rs:395
↓ 7 callersMethodnew_cmd
Creates a new command and returns a stream which will yield a message when the command is send
src/bot.rs:223
↓ 2 callersFunction_fetch
Calls the Telegram API for the function and awaits the result. The result is then converted to a String and returned in a Future. pub fn _fetch<T: fut
src/bot.rs:127
↓ 2 callersFunctionconfig_from
(attrs: &[syn::Attribute])
telebot-derive/src/lib.rs:383
↓ 2 callersMethodget_stream
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
src/bot.rs:370
↓ 2 callersMethodinto_future
(&self)
src/bot.rs:387
↓ 2 callersMethodname
(&self)
src/file.rs:83
↓ 1 callersMethodbuild_formdata
Builds the HTTP header for a formdata request. The file content is read and then append to the formdata. Each key-value pair has a own line.
src/bot.rs:81
↓ 1 callersMethodbuild_json
Builds the HTTP header for a JSON request. The JSON is already converted to a str and is appended to the POST header.
src/bot.rs:46
↓ 1 callersFunctionexpand_function
(ast: syn::MacroInput)
telebot-derive/src/lib.rs:153
↓ 1 callersFunctionexpand_setter
(ast: syn::MacroInput)
telebot-derive/src/lib.rs:19
↓ 1 callersMethodinline
Returns a stream which will yield a received CallbackQuery
src/bot.rs:259
↓ 1 callersMethodprocess_updates
(self, last_id: Arc<AtomicUsize>)
src/bot.rs:283
↓ 1 callersMethodpush
(&mut self, val: FileWithCaption)
src/file.rs:61
↓ 1 callersMethodresolve_name
(&self)
src/bot.rs:267
↓ 1 callersMethodrun
(self)
src/bot.rs:414
↓ 1 callersMethodtimeout
Sets the timeout interval for long polling
src/bot.rs:209
↓ 1 callersMethodtry_into
(self)
src/file.rs:129
↓ 1 callersMethodunknown_cmd
Returns a stream which will yield a message when none of previously registered commands matches
src/bot.rs:241
Methodbacktrace
(&self)
src/error.rs:15
Methodcallback
Returns a stream which will yield a received CallbackQuery
src/bot.rs:250
Methodcause
(&self)
src/error.rs:11
Functionderive_setter
(input: TokenStream)
telebot-derive/src/lib.rs:13
Functionderive_telegram_sendable
(input: TokenStream)
telebot-derive/src/lib.rs:147
Methodfetch_formdata
Creates a new request with some byte content (e.g. a file). The method properties have to be in the formdata setup and cannot be sent as JSON.
src/bot.rs:66
Methodfetch_json
Creates a new request and adds a JSON message to it. The returned Future contains a the reply as a string. This method should be used if no file is a
src/bot.rs:32
Methodfmt
(&self, f: &mut fmt::Formatter)
src/error.rs:21
Methodfrom
(f: objects::InlineKeyboardMarkup)
src/functions.rs:74
Methodfrom
(kind: ErrorKind)
src/error.rs:33
Methodinto_files
(self)
src/file.rs:53
Methodkind
(&self)
src/error.rs:27
Functionmain
()
examples/reply.rs:8
Functionmain
()
examples/send_self.rs:8
Functionmain
()
examples/inline_bot.rs:10
Functionmain
()
examples/send_memory.rs:8
Functionmain
()
examples/restart.rs:8
Functionmain
()
examples/send_mediagroup.rs:8
Functionmain
()
examples/print_everything.rs:6
Functionmain
()
examples/unknown_cmd.rs:8
Functionmain
()
examples/error_handling.rs:10
Methodnew
(key: &str)
src/bot.rs:182
Methodnew
(file: File, caption: String, parse_mode: String)
src/file.rs:112
Methodnew
(message: String)
src/error.rs:113
Methodnew_empty
(file: File)
src/file.rs:104
Methodserialize
(&self, serializer: S)
src/functions.rs:58
Methodto_metadata
(&self)
src/file.rs:34
Methodtry_from
(value: T)
src/file.rs:92