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

B

BotCommand - Class in org.telegram.telegrambots.bots.commandbot.commands
Representation of a command, which can be executed
BotCommand(String, String) - Constructor for class org.telegram.telegrambots.bots.commandbot.commands.BotCommand
Construct a command

C

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

D

DefaultBotCommand - Class in org.telegram.telegrambots.bots.commandbot.commands
Bot command with message ID in execute method
DefaultBotCommand(String, String) - Constructor for class org.telegram.telegrambots.bots.commandbot.commands.DefaultBotCommand
Construct a command
deregister(BotCommand) - Method in class org.telegram.telegrambots.bots.commandbot.commands.CommandRegistry
 
deregister(BotCommand) - Method in interface org.telegram.telegrambots.bots.commandbot.commands.ICommandRegistry
deregister a command
deregister(BotCommand) - Method in class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
 
deregisterAll(BotCommand...) - Method in class org.telegram.telegrambots.bots.commandbot.commands.CommandRegistry
 
deregisterAll(BotCommand...) - Method in interface org.telegram.telegrambots.bots.commandbot.commands.ICommandRegistry
deregister multiple commands
deregisterAll(BotCommand...) - Method in class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
 

E

execute(AbsSender, User, Chat, String[]) - Method in class org.telegram.telegrambots.bots.commandbot.commands.BotCommand
Execute the command
execute(AbsSender, User, Chat, String[]) - Method in class org.telegram.telegrambots.bots.commandbot.commands.DefaultBotCommand
 
execute(AbsSender, User, Chat, Integer, String[]) - Method in class org.telegram.telegrambots.bots.commandbot.commands.DefaultBotCommand
Execute the command
executeCommand(AbsSender, Message) - Method in class org.telegram.telegrambots.bots.commandbot.commands.CommandRegistry
Executes a command action if the command is registered.

F

filter(Message) - Method in class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
Override this function in your bot implementation to filter messages with commands
finish() - Method in class org.telegram.telegrambots.bots.timedbot.TimedSendLongPollingBot
 

G

getBotUsername() - Method in class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
 
getCommandIdentifier() - Method in class org.telegram.telegrambots.bots.commandbot.commands.BotCommand
Get the identifier of this command
getDescription() - Method in class org.telegram.telegrambots.bots.commandbot.commands.BotCommand
Get the description of this command
getRegisteredCommand(String) - Method in class org.telegram.telegrambots.bots.commandbot.commands.CommandRegistry
 
getRegisteredCommand(String) - Method in interface org.telegram.telegrambots.bots.commandbot.commands.ICommandRegistry
get registered command
getRegisteredCommand(String) - Method in class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
 
getRegisteredCommands() - Method in class org.telegram.telegrambots.bots.commandbot.commands.CommandRegistry
 
getRegisteredCommands() - Method in interface org.telegram.telegrambots.bots.commandbot.commands.ICommandRegistry
get a collection of all registered commands
getRegisteredCommands() - Method in class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
 

I

ICommandRegistry - Interface in org.telegram.telegrambots.bots.commandbot.commands
This Interface represents the gateway for registering and deregistering commands.

O

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

P

processInvalidCommandUpdate(Update) - Method in class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
This method is called when user sends a not registered command.
processNonCommandUpdate(Update) - Method in class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
Process all updates, that are not commands.

R

register(BotCommand) - Method in class org.telegram.telegrambots.bots.commandbot.commands.CommandRegistry
 
register(BotCommand) - Method in interface org.telegram.telegrambots.bots.commandbot.commands.ICommandRegistry
register a command
register(BotCommand) - Method in class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
 
registerAll(BotCommand...) - Method in class org.telegram.telegrambots.bots.commandbot.commands.CommandRegistry
 
registerAll(BotCommand...) - Method in interface org.telegram.telegrambots.bots.commandbot.commands.ICommandRegistry
register multiple commands
registerAll(BotCommand...) - Method in class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
 
registerDefaultAction(BiConsumer<AbsSender, Message>) - Method in class org.telegram.telegrambots.bots.commandbot.commands.CommandRegistry
 
registerDefaultAction(BiConsumer<AbsSender, Message>) - Method in interface org.telegram.telegrambots.bots.commandbot.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.commandbot.TelegramLongPollingCommandBot
 

S

sendMessageCallback(Long, Object) - Method in class org.telegram.telegrambots.bots.timedbot.TimedSendLongPollingBot
//@Override public void sendMessageCallback(Long chatId, Object messageRequest) { try { if (messageRequest instanceof SendMessage) { sendMessage((SendMessage) messageRequest); } else if (messageRequest instanceof EditMessageText) { editMessageText((EditMessageText) messageRequest); } else if (messageRequest instanceof SendChatAction) { sendChatAction((SendChatAction) messageRequest); } else if (messageRequest instanceof SendDocument) { sendDocument((SendDocument) messageRequest); } //Etc...
sendTimed(Long, Object) - Method in class org.telegram.telegrambots.bots.timedbot.TimedSendLongPollingBot
SendMessage sendMessageRequest = new SendMessage(); sendMessageRequest.setChatId(chatId); sendMessageRequest.setParseMode("HTML"); sendMessageRequest.setText(text); sendMessageRequest.setReplyMarkup(replyMarkup); sendTimed(chatId, sendMessageRequest); // <-- Instead of sendMessage() API method

T

TelegramLongPollingCommandBot - Class in org.telegram.telegrambots.bots.commandbot
This class adds command functionality to the TelegramLongPollingBot
TelegramLongPollingCommandBot(String) - Constructor for class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
Creates a TelegramLongPollingCommandBot using default options Use ICommandRegistry's methods on this bot to register commands
TelegramLongPollingCommandBot(DefaultBotOptions, String) - Constructor for class org.telegram.telegrambots.bots.commandbot.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, String) - Constructor for class org.telegram.telegrambots.bots.commandbot.TelegramLongPollingCommandBot
Creates a TelegramLongPollingCommandBot Use ICommandRegistry's methods on this bot to register commands
TimedSendLongPollingBot - Class in org.telegram.telegrambots.bots.timedbot
Created by Daniil Nikanov aka JetCoder
TimedSendLongPollingBot() - Constructor for class org.telegram.telegrambots.bots.timedbot.TimedSendLongPollingBot
 
toString() - Method in class org.telegram.telegrambots.bots.commandbot.commands.BotCommand
 
B C D E F G I O P R S T 
Skip navigation links

Copyright © 2017. All rights reserved.