Skip navigation links
A B C D E F G I N O P R S T U 

A

ApiContextInitializer - Class in org.telegram.telegrambots
 

B

BotCommand - Class in org.telegram.telegrambots.bots.commands
Representation of a command, which can be executed
BotCommand(String, String) - Constructor for class org.telegram.telegrambots.bots.commands.BotCommand
Construct a command
build() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff.Builder
Builds a new instance of ExponentialBackOff.
Builder() - Constructor for class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff.Builder
 

C

clearWebhook() - Method in class org.telegram.telegrambots.bots.TelegramLongPollingBot
 
COMMAND_INIT_CHARACTER - Static variable in class org.telegram.telegrambots.bots.commands.BotCommand
 
COMMAND_PARAMETER_SEPARATOR - Static variable in class org.telegram.telegrambots.bots.commands.BotCommand
 
CommandRegistry - Class in org.telegram.telegrambots.bots.commands
This class manages all the commands for a bot.
CommandRegistry(boolean, String) - Constructor for class org.telegram.telegrambots.bots.commands.CommandRegistry
Creates a Command registry
Constants - Class in org.telegram.telegrambots
 
Constants() - Constructor for class org.telegram.telegrambots.Constants
 

D

DEFAULT_INITIAL_INTERVAL_MILLIS - Static variable in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
The default initial interval value in milliseconds (0.5 seconds).
DEFAULT_MAX_ELAPSED_TIME_MILLIS - Static variable in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
The default maximum elapsed time in milliseconds (60 minutes).
DEFAULT_MAX_INTERVAL_MILLIS - Static variable in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
The default maximum back off time in milliseconds (15 minutes).
DEFAULT_MULTIPLIER - Static variable in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
The default multiplier value (1.5 which is 50% increase per back off).
DEFAULT_RANDOMIZATION_FACTOR - Static variable in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
The default randomization factor (0.5 which results in a random period ranging between 50% below and 50% above the retry interval).
DefaultAbsSender - Class in org.telegram.telegrambots.bots
 
DefaultAbsSender(DefaultBotOptions) - Constructor for class org.telegram.telegrambots.bots.DefaultAbsSender
 
DefaultBotOptions - Class in org.telegram.telegrambots.bots
 
DefaultBotOptions() - Constructor for class org.telegram.telegrambots.bots.DefaultBotOptions
 
DefaultBotSession - Class in org.telegram.telegrambots.updatesreceivers
 
DefaultBotSession() - Constructor for class org.telegram.telegrambots.updatesreceivers.DefaultBotSession
 
DefaultWebhook - Class in org.telegram.telegrambots.updatesreceivers
 
DefaultWebhook() - Constructor for class org.telegram.telegrambots.updatesreceivers.DefaultWebhook
 
deregister(BotCommand) - Method in class org.telegram.telegrambots.bots.commands.CommandRegistry
 
deregister(BotCommand) - Method in interface org.telegram.telegrambots.bots.commands.ICommandRegistry
deregister a command
deregister(BotCommand) - Method in class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
 
deregisterAll(BotCommand...) - Method in class org.telegram.telegrambots.bots.commands.CommandRegistry
 
deregisterAll(BotCommand...) - Method in interface org.telegram.telegrambots.bots.commands.ICommandRegistry
deregister multiple commands
deregisterAll(BotCommand...) - Method in class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
 
downloadFile(String) - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
 
downloadFile(File) - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
 
downloadFileAsync(String, DownloadFileCallback<String>) - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
 
downloadFileAsync(File, DownloadFileCallback<File>) - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
 

E

execute(AbsSender, User, Chat, String[]) - Method in class org.telegram.telegrambots.bots.commands.BotCommand
Execute the command
executeCommand(AbsSender, Message) - Method in class org.telegram.telegrambots.bots.commands.CommandRegistry
Executes a command action if the command is registered.
ExponentialBackOff - Class in org.telegram.telegrambots.updatesreceivers
Implementation of BackOff that increases the back off period for each retry attempt using a randomization function that grows exponentially.
ExponentialBackOff() - Constructor for class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
Creates an instance of ExponentialBackOffPolicy using default values.
ExponentialBackOff(ExponentialBackOff.Builder) - Constructor for class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
 
ExponentialBackOff.Builder - Class in org.telegram.telegrambots.updatesreceivers
Builder for ExponentialBackOff.

F

filter(Message) - Method in class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
Override this function in your bot implementation to filter messages with commands For example, if you want to prevent commands execution incoming from group chat: # # return !message.getChat().isGroupChat(); #

G

getAllowedUpdates() - Method in class org.telegram.telegrambots.bots.DefaultBotOptions
 
getBotToken() - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
Returns the token of the bot to be able to perform Telegram Api Requests
getCommandIdentifier() - Method in class org.telegram.telegrambots.bots.commands.BotCommand
Get the identifier of this command
getCurrentIntervalMillis() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
Returns the current retry interval in milliseconds.
getDescription() - Method in class org.telegram.telegrambots.bots.commands.BotCommand
Get the description of this command
getElapsedTimeMillis() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
Returns the elapsed time in milliseconds since an ExponentialBackOff instance is created and is reset when ExponentialBackOff.reset() is called.
getExponentialBackOff() - Method in class org.telegram.telegrambots.bots.DefaultBotOptions
 
getInitialIntervalMillis() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff.Builder
Returns the initial retry interval in milliseconds.
getInitialIntervalMillis() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
Returns the initial retry interval in milliseconds.
getMaxElapsedTimeMillis() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff.Builder
Returns the maximum elapsed time in milliseconds.
getMaxElapsedTimeMillis() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
Returns the maximum elapsed time in milliseconds.
getMaxIntervalMillis() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff.Builder
Returns the maximum value of the back off period in milliseconds.
getMaxIntervalMillis() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
Returns the maximum value of the back off period in milliseconds.
getMaxThreads() - Method in class org.telegram.telegrambots.bots.DefaultBotOptions
 
getMaxWebhookConnections() - Method in class org.telegram.telegrambots.bots.DefaultBotOptions
 
getMultiplier() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff.Builder
Returns the value to multiply the current interval with for each retry attempt.
getMultiplier() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
Returns the value to multiply the current interval with for each retry attempt.
getOptions() - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
 
getRandomizationFactor() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff.Builder
Returns the randomization factor to use for creating a range around the retry interval.
getRandomizationFactor() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
Returns the randomization factor to use for creating a range around the retry interval.
getRegisteredCommand(String) - Method in class org.telegram.telegrambots.bots.commands.CommandRegistry
 
getRegisteredCommand(String) - Method in interface org.telegram.telegrambots.bots.commands.ICommandRegistry
get registered command
getRegisteredCommand(String) - Method in class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
 
getRegisteredCommands() - Method in class org.telegram.telegrambots.bots.commands.CommandRegistry
 
getRegisteredCommands() - Method in interface org.telegram.telegrambots.bots.commands.ICommandRegistry
get a collection of all registered commands
getRegisteredCommands() - Method in class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
 
getRequestConfig() - Method in class org.telegram.telegrambots.bots.DefaultBotOptions
 

I

ICommandRegistry - Interface in org.telegram.telegrambots.bots.commands
This Interface represents the gateway for registering and deregistering commands.
init() - Static method in class org.telegram.telegrambots.ApiContextInitializer
 
isRunning() - Method in class org.telegram.telegrambots.updatesreceivers.DefaultBotSession
 

N

nextBackOffMillis() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff

O

onUpdateReceived(Update) - Method in class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
 
org.telegram.telegrambots - package org.telegram.telegrambots
 
org.telegram.telegrambots.bots - package org.telegram.telegrambots.bots
 
org.telegram.telegrambots.bots.commands - package org.telegram.telegrambots.bots.commands
 
org.telegram.telegrambots.updatesreceivers - package org.telegram.telegrambots.updatesreceivers
 

P

processNonCommandUpdate(Update) - Method in class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
Process all updates, that are not commands.

R

register(BotCommand) - Method in class org.telegram.telegrambots.bots.commands.CommandRegistry
 
register(BotCommand) - Method in interface org.telegram.telegrambots.bots.commands.ICommandRegistry
register a command
register(BotCommand) - Method in class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
 
registerAll(BotCommand...) - Method in class org.telegram.telegrambots.bots.commands.CommandRegistry
 
registerAll(BotCommand...) - Method in interface org.telegram.telegrambots.bots.commands.ICommandRegistry
register multiple commands
registerAll(BotCommand...) - Method in class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
 
registerCallback(WebhookBot) - Method in class org.telegram.telegrambots.updatesreceivers.RestApi
 
registerDefaultAction(BiConsumer<AbsSender, Message>) - Method in class org.telegram.telegrambots.bots.commands.CommandRegistry
 
registerDefaultAction(BiConsumer<AbsSender, Message>) - Method in interface org.telegram.telegrambots.bots.commands.ICommandRegistry
Register a default action when there is no command register that match the message sent
registerDefaultAction(BiConsumer<AbsSender, Message>) - Method in class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
 
registerWebhook(WebhookBot) - Method in class org.telegram.telegrambots.updatesreceivers.DefaultWebhook
 
reset() - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff
Sets the interval back to the initial retry interval and restarts the timer.
RestApi - Class in org.telegram.telegrambots.updatesreceivers
 
RestApi() - Constructor for class org.telegram.telegrambots.updatesreceivers.RestApi
 

S

sendApiMethod(Method) - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
 
sendApiMethodAsync(Method, Callback) - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
 
sendAudio(SendAudio) - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
Sends a file using Send Audio method (https://core.telegram.org/bots/api#sendaudio)
sendDocument(SendDocument) - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
 
sendPhoto(SendPhoto) - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
 
sendSticker(SendSticker) - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
 
sendVideo(SendVideo) - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
 
sendVoice(SendVoice) - Method in class org.telegram.telegrambots.bots.DefaultAbsSender
Sends a voice note using Send Voice method (https://core.telegram.org/bots/api#sendvoice) For this to work, your audio must be in an .ogg file encoded with OPUS
setAllowedUpdates(List<String>) - Method in class org.telegram.telegrambots.bots.DefaultBotOptions
 
setCallback(LongPollingBot) - Method in class org.telegram.telegrambots.updatesreceivers.DefaultBotSession
 
setExponentialBackOff(ExponentialBackOff) - Method in class org.telegram.telegrambots.bots.DefaultBotOptions
 
setInitialIntervalMillis(int) - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff.Builder
Sets the initial retry interval in milliseconds.
setInternalUrl(String) - Method in class org.telegram.telegrambots.updatesreceivers.DefaultWebhook
 
setKeyStore(String, String) - Method in class org.telegram.telegrambots.updatesreceivers.DefaultWebhook
 
setMaxElapsedTimeMillis(int) - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff.Builder
Sets the maximum elapsed time in milliseconds.
setMaxIntervalMillis(int) - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff.Builder
Sets the maximum value of the back off period in milliseconds.
setMaxThreads(int) - Method in class org.telegram.telegrambots.bots.DefaultBotOptions
 
setMaxWebhookConnections(Integer) - Method in class org.telegram.telegrambots.bots.DefaultBotOptions
 
setMultiplier(double) - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff.Builder
Sets the value to multiply the current interval with for each retry attempt.
setOptions(BotOptions) - Method in class org.telegram.telegrambots.updatesreceivers.DefaultBotSession
 
setRandomizationFactor(double) - Method in class org.telegram.telegrambots.updatesreceivers.ExponentialBackOff.Builder
Sets the randomization factor to use for creating a range around the retry interval.
setRequestConfig(RequestConfig) - Method in class org.telegram.telegrambots.bots.DefaultBotOptions
 
setToken(String) - Method in class org.telegram.telegrambots.updatesreceivers.DefaultBotSession
 
setWebhook(String, String) - Method in class org.telegram.telegrambots.bots.TelegramWebhookBot
 
SOCKET_TIMEOUT - Static variable in class org.telegram.telegrambots.Constants
 
start() - Method in class org.telegram.telegrambots.updatesreceivers.DefaultBotSession
 
startServer() - Method in class org.telegram.telegrambots.updatesreceivers.DefaultWebhook
 
stop() - Method in class org.telegram.telegrambots.updatesreceivers.DefaultBotSession
 

T

TelegramLongPollingBot - Class in org.telegram.telegrambots.bots
 
TelegramLongPollingBot() - Constructor for class org.telegram.telegrambots.bots.TelegramLongPollingBot
 
TelegramLongPollingBot(DefaultBotOptions) - Constructor for class org.telegram.telegrambots.bots.TelegramLongPollingBot
 
TelegramLongPollingCommandBot - Class in org.telegram.telegrambots.bots
This class adds command functionality to the TelegramLongPollingBot
TelegramLongPollingCommandBot() - Constructor for class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
Creates a TelegramLongPollingCommandBot using default options Use ICommandRegistry's methods on this bot to register commands
TelegramLongPollingCommandBot(DefaultBotOptions) - Constructor for class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
Creates a TelegramLongPollingCommandBot with custom options and allowing commands with usernames Use ICommandRegistry's methods on this bot to register commands
TelegramLongPollingCommandBot(DefaultBotOptions, boolean) - Constructor for class org.telegram.telegrambots.bots.TelegramLongPollingCommandBot
Creates a TelegramLongPollingCommandBot Use ICommandRegistry's methods on this bot to register commands
TelegramWebhookBot - Class in org.telegram.telegrambots.bots
 
TelegramWebhookBot() - Constructor for class org.telegram.telegrambots.bots.TelegramWebhookBot
 
TelegramWebhookBot(DefaultBotOptions) - Constructor for class org.telegram.telegrambots.bots.TelegramWebhookBot
 
testReceived(String) - Method in class org.telegram.telegrambots.updatesreceivers.RestApi
 
toString() - Method in class org.telegram.telegrambots.bots.commands.BotCommand
 

U

updateReceived(String, Update) - Method in class org.telegram.telegrambots.updatesreceivers.RestApi
 
A B C D E F G I N O P R S T U 
Skip navigation links

Copyright © 2017. All rights reserved.