Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytesnake/telebot
/ functions
Functions
49 in github.com/bytesnake/telebot
⨍
Functions
49
◇
Types & classes
116
↓ 14 callers
Method
into
(self)
src/functions.rs:26
↓ 9 callers
Method
update_interval
Sets the update interval to an integer in milliseconds
src/bot.rs:202
↓ 8 callers
Method
run_with
(self, other: I)
src/bot.rs:395
↓ 7 callers
Method
new_cmd
Creates a new command and returns a stream which will yield a message when the command is send
src/bot.rs:223
↓ 2 callers
Function
_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 callers
Function
config_from
(attrs: &[syn::Attribute])
telebot-derive/src/lib.rs:383
↓ 2 callers
Method
get_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 callers
Method
into_future
(&self)
src/bot.rs:387
↓ 2 callers
Method
name
(&self)
src/file.rs:83
↓ 1 callers
Method
build_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 callers
Method
build_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 callers
Function
expand_function
(ast: syn::MacroInput)
telebot-derive/src/lib.rs:153
↓ 1 callers
Function
expand_setter
(ast: syn::MacroInput)
telebot-derive/src/lib.rs:19
↓ 1 callers
Method
inline
Returns a stream which will yield a received CallbackQuery
src/bot.rs:259
↓ 1 callers
Method
process_updates
(self, last_id: Arc<AtomicUsize>)
src/bot.rs:283
↓ 1 callers
Method
push
(&mut self, val: FileWithCaption)
src/file.rs:61
↓ 1 callers
Method
resolve_name
(&self)
src/bot.rs:267
↓ 1 callers
Method
run
(self)
src/bot.rs:414
↓ 1 callers
Method
timeout
Sets the timeout interval for long polling
src/bot.rs:209
↓ 1 callers
Method
try_into
(self)
src/file.rs:129
↓ 1 callers
Method
unknown_cmd
Returns a stream which will yield a message when none of previously registered commands matches
src/bot.rs:241
Method
backtrace
(&self)
src/error.rs:15
Method
callback
Returns a stream which will yield a received CallbackQuery
src/bot.rs:250
Method
cause
(&self)
src/error.rs:11
Function
derive_setter
(input: TokenStream)
telebot-derive/src/lib.rs:13
Function
derive_telegram_sendable
(input: TokenStream)
telebot-derive/src/lib.rs:147
Method
fetch_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
Method
fetch_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
Method
fmt
(&self, f: &mut fmt::Formatter)
src/error.rs:21
Method
from
(f: objects::InlineKeyboardMarkup)
src/functions.rs:74
Method
from
(kind: ErrorKind)
src/error.rs:33
Method
into_files
(self)
src/file.rs:53
Method
kind
(&self)
src/error.rs:27
Function
main
()
examples/reply.rs:8
Function
main
()
examples/send_self.rs:8
Function
main
()
examples/inline_bot.rs:10
Function
main
()
examples/send_memory.rs:8
Function
main
()
examples/restart.rs:8
Function
main
()
examples/send_mediagroup.rs:8
Function
main
()
examples/print_everything.rs:6
Function
main
()
examples/unknown_cmd.rs:8
Function
main
()
examples/error_handling.rs:10
Method
new
(key: &str)
src/bot.rs:182
Method
new
(file: File, caption: String, parse_mode: String)
src/file.rs:112
Method
new
(message: String)
src/error.rs:113
Method
new_empty
(file: File)
src/file.rs:104
Method
serialize
(&self, serializer: S)
src/functions.rs:58
Method
to_metadata
(&self)
src/file.rs:34
Method
try_from
(value: T)
src/file.rs:92