Index
All Classes and Interfaces|All Packages
A
- AbstractTelegramBot - Class in com.github.unafraid.telegrambot.bots
- AbstractTelegramBot(TelegramClient) - Constructor for class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- addHandler(ITelegramHandler) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
-
Registers ICommandHandler instance into a collection of handlers
- andThen(IThrowableFunction<? super R, ? extends V>) - Method in interface com.github.unafraid.telegrambot.util.IThrowableFunction
- apply(T) - Method in interface com.github.unafraid.telegrambot.util.IThrowableFunction
B
- BotUtil - Class in com.github.unafraid.telegrambot.util
- BotUtil() - Constructor for class com.github.unafraid.telegrambot.util.BotUtil
C
- com.github.unafraid.telegrambot.bots - package com.github.unafraid.telegrambot.bots
- com.github.unafraid.telegrambot.handlers - package com.github.unafraid.telegrambot.handlers
- com.github.unafraid.telegrambot.util - package com.github.unafraid.telegrambot.util
- CommonUtil - Class in com.github.unafraid.telegrambot.util
- CommonUtil() - Constructor for class com.github.unafraid.telegrambot.util.CommonUtil
- compose(IThrowableFunction<? super V, ? extends T>) - Method in interface com.github.unafraid.telegrambot.util.IThrowableFunction
- consume(List<Update>) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
D
- DefaultTelegramBot - Class in com.github.unafraid.telegrambot.bots
-
Default Telegram bot implementation, handles all updates and sends notification to registered handlers.
- DefaultTelegramBot(TelegramClient) - Constructor for class com.github.unafraid.telegrambot.bots.DefaultTelegramBot
- downloadFile(File) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- downloadFileAsStream(File) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- downloadFileAsStreamAsync(File) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- downloadFileAsync(File) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
E
- editMessage(T, CallbackQuery, String, boolean, InlineKeyboardMarkup) - Static method in class com.github.unafraid.telegrambot.util.BotUtil
- editMessage(T, Message, String, boolean, InlineKeyboardMarkup) - Static method in class com.github.unafraid.telegrambot.util.BotUtil
- execute(Method) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SetChatPhoto) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SendAnimation) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SendAudio) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SendDocument) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SendMediaGroup) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SendPaidMedia) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SendPhoto) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SendSticker) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SendVideo) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SendVideoNote) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SendVoice) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(AddStickerToSet) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(CreateNewStickerSet) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(ReplaceStickerInSet) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SetStickerSetThumbnail) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(UploadStickerFile) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(SetWebhook) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- execute(EditMessageMedia) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(Method) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SetChatPhoto) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SendAnimation) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SendAudio) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SendDocument) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SendMediaGroup) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SendPaidMedia) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SendPhoto) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SendSticker) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SendVideo) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SendVideoNote) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SendVoice) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(AddStickerToSet) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(CreateNewStickerSet) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(ReplaceStickerInSet) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SetStickerSetThumbnail) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(UploadStickerFile) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(SetWebhook) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- executeAsync(EditMessageMedia) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
G
- getAccessLevelValidator() - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- getAvailableHandlers(Class<T>) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
-
Returns a
List<T>and verifies for access level if any of the handlers implementsITelegramHandler - getAvailableHandlersForUser(Class<T>, User) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
-
Returns a
List<T>and verifies for access level if any of the handlers implementsITelegramHandler - getBoolean(String) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Return the boolean associated to the key put in parameter ("name")
- getBoolean(String, boolean) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Return the boolean associated to the key put in parameter ("name").
- getByte(String) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the byte associated to the key put in parameter ("name").
- getByte(String, byte) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the int associated to the key put in parameter ("name").
- getCategory() - Method in interface com.github.unafraid.telegrambot.handlers.ICommandHandler
- getCommand() - Method in interface com.github.unafraid.telegrambot.handlers.ICommandHandler
- getDescription() - Method in interface com.github.unafraid.telegrambot.handlers.ICommandHandler
- getDouble(String) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the double associated to the key put in parameter ("name").
- getDouble(String, float) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the double associated to the key put in parameter ("name").
- getEnum(String, Class<T>) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns an enumeration of <T> from the set
- getEnum(String, Class<T>, T) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns an enumeration of <T> from the set.
- getEnumList(String, Class<T>) - Method in class com.github.unafraid.telegrambot.util.MapUtil
- getEnumSet(String, Class<T>) - Method in class com.github.unafraid.telegrambot.util.MapUtil
- getFloat(String) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the float associated to the key put in parameter ("name").
- getFloat(String, float) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the float associated to the key put in parameter ("name").
- getFloatArray(String, String) - Method in class com.github.unafraid.telegrambot.util.MapUtil
- getHandler(String) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- getHandlers() - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- getInt(String) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the int associated to the key put in parameter ("name").
- getIntArray(String, String) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the int[] associated to the key put in parameter ("name").
- getInteger(String, int) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the int associated to the key put in parameter ("name").
- getInternalMap() - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the set of values
- getList(String, Class<T>) - Method in class com.github.unafraid.telegrambot.util.MapUtil
- getList(String, Class<T>, List<T>) - Method in class com.github.unafraid.telegrambot.util.MapUtil
- getLong(String) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the long associated to the key put in parameter ("name").
- getLong(String, int) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the long associated to the key put in parameter ("name").
- getMap(String, Class<K>, Class<V>) - Method in class com.github.unafraid.telegrambot.util.MapUtil
- getMapOfList(String, Class<K>, Class<V>) - Method in class com.github.unafraid.telegrambot.util.MapUtil
- getObject(String, Class<A>) - Method in class com.github.unafraid.telegrambot.util.MapUtil
- getRequiredAccessLevel() - Method in interface com.github.unafraid.telegrambot.handlers.ITelegramHandler
- getSet(String, Class<T>) - Method in class com.github.unafraid.telegrambot.util.MapUtil
- getSet(String, Class<T>, Set<T>) - Method in class com.github.unafraid.telegrambot.util.MapUtil
- getShort(String) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the short associated to the key put in parameter ("name").
- getShort(String, short) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the short associated to the key put in parameter ("name").
- getString(String) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the String associated to the key put in parameter ("name").
- getString(String, String) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Returns the String associated to the key put in parameter ("name").
- getUsage() - Method in interface com.github.unafraid.telegrambot.handlers.ICommandHandler
I
- IAccessLevelValidator - Interface in com.github.unafraid.telegrambot.handlers
- ICallbackQueryHandler - Interface in com.github.unafraid.telegrambot.handlers
- ICancelHandler - Interface in com.github.unafraid.telegrambot.handlers
- IChannelPostHandler - Interface in com.github.unafraid.telegrambot.handlers
- IChatJoinRequestHandler - Interface in com.github.unafraid.telegrambot.handlers
- IChatMemberHandler - Interface in com.github.unafraid.telegrambot.handlers
- IChosenInlineQueryHandler - Interface in com.github.unafraid.telegrambot.handlers
- ICommandHandler - Interface in com.github.unafraid.telegrambot.handlers
- identity() - Static method in interface com.github.unafraid.telegrambot.util.IThrowableFunction
- IDocumentMessageHandler - Interface in com.github.unafraid.telegrambot.handlers
- IEditedChannelPostHandler - Interface in com.github.unafraid.telegrambot.handlers
- IEditedMessageHandler - Interface in com.github.unafraid.telegrambot.handlers
- IHasMyChatMemberHandler - Interface in com.github.unafraid.telegrambot.handlers
- IInlineQueryHandler - Interface in com.github.unafraid.telegrambot.handlers
- IMessageHandler - Interface in com.github.unafraid.telegrambot.handlers
- IPollAnswerHandler - Interface in com.github.unafraid.telegrambot.handlers
- IPollHandler - Interface in com.github.unafraid.telegrambot.handlers
- IPreCheckoutQueryHandler - Interface in com.github.unafraid.telegrambot.handlers
- isDigit(String) - Static method in class com.github.unafraid.telegrambot.util.CommonUtil
- isDouble(String) - Static method in class com.github.unafraid.telegrambot.util.CommonUtil
- isEnum(String, Class<T>) - Static method in class com.github.unafraid.telegrambot.util.CommonUtil
- isFloat(String) - Static method in class com.github.unafraid.telegrambot.util.CommonUtil
- IShippingQueryHandler - Interface in com.github.unafraid.telegrambot.handlers
- isInteger(String) - Static method in class com.github.unafraid.telegrambot.util.CommonUtil
- ITelegramHandler - Interface in com.github.unafraid.telegrambot.handlers
- IThrowableFunction<T,
R> - Interface in com.github.unafraid.telegrambot.util - IUnknownUpdateHandler - Interface in com.github.unafraid.telegrambot.handlers
- IUpdateHandler - Interface in com.github.unafraid.telegrambot.handlers
M
- MapUtil - Class in com.github.unafraid.telegrambot.util
- MapUtil() - Constructor for class com.github.unafraid.telegrambot.util.MapUtil
- MapUtil(Map<String, Object>) - Constructor for class com.github.unafraid.telegrambot.util.MapUtil
- merge(MapUtil) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Add a set of couple values in the current set
O
- onCallbackQuery(AbstractTelegramBot, Update, CallbackQuery) - Method in interface com.github.unafraid.telegrambot.handlers.ICallbackQueryHandler
-
Fired whenever bot receives a callback query
- onCancel(AbstractTelegramBot, Update, Message) - Method in interface com.github.unafraid.telegrambot.handlers.ICancelHandler
-
Fired whenever user types in /cancel command to cancel the current action
- onChannelPost(AbstractTelegramBot, Update, Message) - Method in interface com.github.unafraid.telegrambot.handlers.IChannelPostHandler
-
Fired whenever someone posts message within a channel
- onChatJoinRequest(AbstractTelegramBot, Update, ChatJoinRequest) - Method in interface com.github.unafraid.telegrambot.handlers.IChatJoinRequestHandler
-
Fired whenever chat join request is received
- onChatMember(AbstractTelegramBot, Update, ChatMemberUpdated) - Method in interface com.github.unafraid.telegrambot.handlers.IChatMemberHandler
-
Fired whenever chat member is received
- onChosenInlineQuery(AbstractTelegramBot, Update, ChosenInlineQuery) - Method in interface com.github.unafraid.telegrambot.handlers.IChosenInlineQueryHandler
-
Fired whenever bot receives a callback query
- onCommandMessage(AbstractTelegramBot, Update, Message, List<String>) - Method in interface com.github.unafraid.telegrambot.handlers.ICommandHandler
-
Fired when user types in /command arg0 arg1 arg2..
- onDocumentSent(AbstractTelegramBot, Update, Message) - Method in interface com.github.unafraid.telegrambot.handlers.IDocumentMessageHandler
-
Fired whenever user sends a document
- onEditedChannelPost(AbstractTelegramBot, Update, Message) - Method in interface com.github.unafraid.telegrambot.handlers.IEditedChannelPostHandler
-
Fired whenever someone edits a message within a channel
- onEditMessage(AbstractTelegramBot, Update, Message) - Method in interface com.github.unafraid.telegrambot.handlers.IEditedMessageHandler
-
Fired whenever user types anything but a command
- onHasMyChatMember(AbstractTelegramBot, Update, ChatMemberUpdated) - Method in interface com.github.unafraid.telegrambot.handlers.IHasMyChatMemberHandler
-
Fired whenever has my chat member is received
- onInlineQuery(AbstractTelegramBot, Update, InlineQuery) - Method in interface com.github.unafraid.telegrambot.handlers.IInlineQueryHandler
-
Fired whenever bot receives a callback query
- onMessage(AbstractTelegramBot, Update, Message) - Method in interface com.github.unafraid.telegrambot.handlers.IMessageHandler
-
Fired whenever user types anything but a command
- onPoll(AbstractTelegramBot, Update, Poll) - Method in interface com.github.unafraid.telegrambot.handlers.IPollHandler
-
Fired whenever poll is received
- onPollAnswer(AbstractTelegramBot, Update, PollAnswer) - Method in interface com.github.unafraid.telegrambot.handlers.IPollAnswerHandler
-
Fired whenever poll answer is received
- onPreCheckoutQuery(AbstractTelegramBot, Update, PreCheckoutQuery) - Method in interface com.github.unafraid.telegrambot.handlers.IPreCheckoutQueryHandler
-
Fired whenever pre checkout query is received
- onShippingQuery(AbstractTelegramBot, Update, ShippingQuery) - Method in interface com.github.unafraid.telegrambot.handlers.IShippingQueryHandler
-
Fired whenever shipping query is received
- onUnhandledUpdate(AbstractTelegramBot, Update) - Method in interface com.github.unafraid.telegrambot.handlers.IUnknownUpdateHandler
-
Fired unhandled update is received
- onUpdate(AbstractTelegramBot, Update) - Method in interface com.github.unafraid.telegrambot.handlers.IUpdateHandler
-
Fired any update is received
P
- parseInt(String, int) - Static method in class com.github.unafraid.telegrambot.util.CommonUtil
- processText(String) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
- put(String, Object) - Method in class com.github.unafraid.telegrambot.util.MapUtil
-
Puts key-value pair inside the internal map, replacing previously existing key
R
- removeHandler(ITelegramHandler) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
-
Removes ICommandHandler instance from the collection of handlers
S
- sendAction(T, Message, ActionType) - Static method in class com.github.unafraid.telegrambot.util.BotUtil
- sendHtmlMessage(T, Message, String, boolean, ReplyKeyboard) - Static method in class com.github.unafraid.telegrambot.util.BotUtil
- sendMessage(T, Message, String, boolean, boolean, ReplyKeyboard) - Static method in class com.github.unafraid.telegrambot.util.BotUtil
- sendUsage(T, Message, ICommandHandler) - Static method in class com.github.unafraid.telegrambot.util.BotUtil
- setAccessLevelValidator(IAccessLevelValidator) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
-
Sets the Access Level Validator instance that will be used for future access level validations
V
- validate(ITelegramHandler, User) - Method in interface com.github.unafraid.telegrambot.handlers.IAccessLevelValidator
- validateAccessLevel(T, User) - Method in class com.github.unafraid.telegrambot.bots.AbstractTelegramBot
-
Validates access level
All Classes and Interfaces|All Packages