Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Eng-Fouad/JTelegramBot
/ functions
Functions
1,343 in github.com/Eng-Fouad/JTelegramBot
⨍
Functions
1,343
◇
Types & classes
238
↓ 34 callers
Method
sendHttpPost
Send HTTP POST request using multipart/form-data content type. @param requestUrl url to send the request to @param formFields pairs of Key/Value HTTP
JTelegramBot Core/src/io/fouad/jtb/core/utils/HttpClient.java:214
↓ 30 callers
Method
toJavaObject
(String json, Class<T> clazz)
JTelegramBot Core/src/io/fouad/jtb/core/utils/JsonUtils.java:40
↓ 27 callers
Method
getHttpStatusCode
()
JTelegramBot Core/src/io/fouad/jtb/core/utils/HttpClient.java:168
↓ 27 callers
Method
getResponseBody
()
JTelegramBot Core/src/io/fouad/jtb/core/utils/HttpClient.java:169
↓ 27 callers
Method
getResult
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/TelegramResult.java:71
↓ 27 callers
Method
isOk
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/TelegramResult.java:69
↓ 22 callers
Method
getId
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/Chat.java:86
↓ 21 callers
Method
getUsername
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/Chat.java:89
↓ 19 callers
Method
byId
(long id)
JTelegramBot Core/src/io/fouad/jtb/core/beans/ChatIdentifier.java:41
↓ 19 callers
Method
byUsername
(String username)
JTelegramBot Core/src/io/fouad/jtb/core/beans/ChatIdentifier.java:46
↓ 12 callers
Method
toJson
(Object javaObject)
JTelegramBot Core/src/io/fouad/jtb/core/utils/JsonUtils.java:54
↓ 6 callers
Method
byFile
(File file)
JTelegramBot Core/src/io/fouad/jtb/core/beans/MediaIdentifier.java:54
↓ 6 callers
Method
byId
(String id)
JTelegramBot Core/src/io/fouad/jtb/core/beans/MediaIdentifier.java:49
↓ 6 callers
Method
byInputStream
(InputStream inputStream, String fileName)
JTelegramBot Core/src/io/fouad/jtb/core/beans/MediaIdentifier.java:59
↓ 6 callers
Method
getFileName
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/Document.java:78
↓ 6 callers
Method
getMediaId
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/MediaIdentifier.java:64
↓ 6 callers
Method
getMediaInputStream
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/MediaIdentifier.java:66
↓ 5 callers
Method
getName
()
JTelegramBot Core/src/io/fouad/jtb/core/utils/HttpClient.java:66
↓ 3 callers
Method
equals
(Object o)
JTelegramBot Core/src/io/fouad/jtb/core/utils/HttpClient.java:123
↓ 3 callers
Method
getDescription
()
JTelegramBot Core/src/io/fouad/jtb/core/exceptions/NegativeResponseException.java:77
↓ 3 callers
Method
getErrorCode
()
JTelegramBot Core/src/io/fouad/jtb/core/exceptions/NegativeResponseException.java:76
↓ 3 callers
Method
getValue
()
JTelegramBot Core/src/io/fouad/jtb/core/utils/HttpClient.java:67
↓ 3 callers
Method
hashCode
()
JTelegramBot Core/src/io/fouad/jtb/core/utils/HttpClient.java:136
↓ 2 callers
Method
build
(List<List<InlineKeyboardButton>> twoDimensionKeyboardButtons)
JTelegramBot Builders/src/io/fouad/jtb/core/builders/InlineKeyboardButtonBuilder.java:204
↓ 2 callers
Method
build
(List<List<KeyboardButton>> twoDimensionKeyboardButtons)
JTelegramBot Builders/src/io/fouad/jtb/core/builders/KeyboardButtonBuilder.java:155
↓ 2 callers
Method
build
()
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotConfig.java:100
↓ 2 callers
Method
buildWrapper
(String response)
JTelegramBot Core/src/io/fouad/jtb/core/exceptions/NegativeResponseException.java:112
↓ 2 callers
Method
equals
(Object o)
JTelegramBot Core/src/io/fouad/jtb/core/beans/Chat.java:93
↓ 2 callers
Method
getInputStream
()
JTelegramBot Core/src/io/fouad/jtb/core/utils/HttpClient.java:121
↓ 2 callers
Method
getPortNumber
()
JTelegramBot Webhook/src/io/fouad/jtb/webhook/enums/TelegramPort.java:44
↓ 2 callers
Method
getUpdateId
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/Update.java:89
↓ 2 callers
Method
onUpdateReceived
This method is invoked by a worker thread upon receiving a new update. @param update the new update object to be handled
JTelegramBot Core/src/io/fouad/jtb/core/JTelegramBot.java:194
↓ 2 callers
Method
readResponse
Read HTTP responseBody. @param connection the HTTP connection which we read the responseBody from @return the responseBody @throws IOException if a
JTelegramBot Core/src/io/fouad/jtb/core/utils/HttpClient.java:331
↓ 2 callers
Method
setRequestContact
(Boolean requestContact)
JTelegramBot Core/src/io/fouad/jtb/core/beans/KeyboardButton.java:74
↓ 2 callers
Method
setRequestLocation
(Boolean requestLocation)
JTelegramBot Core/src/io/fouad/jtb/core/beans/KeyboardButton.java:77
↓ 2 callers
Method
start
Starts receiving requests from Telegram server (WEBHOOK mode). This is a blocking method.
JTelegramBot Webhook/src/io/fouad/jtb/webhook/WebhookServer.java:162
↓ 2 callers
Method
startPolling
Starts the bot in POLLING mode, with passing custom configurations. @param telegramBotConfig custom configurations related to the bot
JTelegramBot Core/src/io/fouad/jtb/core/JTelegramBot.java:146
↓ 2 callers
Method
toString
()
JTelegramBot Core/src/io/fouad/jtb/core/utils/HttpClient.java:144
↓ 1 callers
Method
answerCallbackQuery
Sends answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:466
↓ 1 callers
Method
answerInlineQuery
Sends answers to an inline query. No more than 50 results per query are allowed. @param inlineQueryId unique identifier for the answered query @param
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:558
↓ 1 callers
Method
build
Builds the inline keyboard. @return the inline keyboard
JTelegramBot Builders/src/io/fouad/jtb/core/builders/InlineKeyboardButtonBuilder.java:74
↓ 1 callers
Method
build
Builds the keyboard. @return the keyboard
JTelegramBot Builders/src/io/fouad/jtb/core/builders/KeyboardButtonBuilder.java:74
↓ 1 callers
Method
downloadFile
Download a file from the internet. @param fileUrl the url where we download the file from @param saveToOutputStream the output stream where the file
JTelegramBot Core/src/io/fouad/jtb/core/utils/HttpClient.java:372
↓ 1 callers
Method
editMessageCaption
Edits captions of messages sent by the bot or via the bot (for inline bots). @param targetChatIdentifier unique identifier for the target chat or use
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:504
↓ 1 callers
Method
editMessageReplyMarkup
Edits only the reply markup of messages sent by the bot or via the bot (for inline bots). @param targetChatIdentifier unique identifier for the targe
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:521
↓ 1 callers
Method
editMessageText
Edits text messages sent by the bot or via the bot (for inline bots). @param targetChatIdentifier unique identifier for the target chat or username o
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:485
↓ 1 callers
Method
forwardMessage
Forwards messages of any kind. @param targetChatIdentifier unique identifier for the target chat or username of the target channel @param sourceChatI
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:106
↓ 1 callers
Method
getApiToken
@return token used to authenticate with bot API
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:56
↓ 1 callers
Method
getCallbackQuery
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/Update.java:94
↓ 1 callers
Method
getChat
Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:411
↓ 1 callers
Method
getChatAdministrators
Use this method to get a list of administrators in a chat. @param targetChatIdentifier unique identifier for the target group/supergroup or username
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:425
↓ 1 callers
Method
getChatMember
Use this method to get information about a member of a chat. @param targetChatIdentifier unique identifier for the target group/supergroup or usernam
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:450
↓ 1 callers
Method
getChatMembersCount
Use this method to get the number of members in a chat. @param targetChatIdentifier unique identifier for the target group/supergroup or username of
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:437
↓ 1 callers
Method
getChosenInlineResult
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/Update.java:93
↓ 1 callers
Method
getDescription
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/TelegramResult.java:72
↓ 1 callers
Method
getEditedMessage
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/Update.java:91
↓ 1 callers
Method
getFile
Gets basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. Note: This function may n
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:354
↓ 1 callers
Method
getFileName
()
JTelegramBot Core/src/io/fouad/jtb/core/utils/HttpClient.java:120
↓ 1 callers
Method
getFilePath
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/PhotoSize.java:80
↓ 1 callers
Method
getInlineQuery
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/Update.java:92
↓ 1 callers
Method
getMe
A simple method for testing the bot's authentication token. @return basic information about the bot in form of a <code>User</code> object @throws IO
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:66
↓ 1 callers
Method
getMessage
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/Update.java:90
↓ 1 callers
Method
getNewUpdates
This method is used to receive incoming updates using long polling. @param offset identifier of the first update to be returned. Must be greater by o
JTelegramBot Core/src/io/fouad/jtb/core/JTelegramBot.java:280
↓ 1 callers
Method
getPollingTimeoutInSeconds
()
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotConfig.java:48
↓ 1 callers
Method
getUserProfilePhotos
Gets a list of profile pictures for a user. @param userId unique identifier of the target user @param offset sequential number of the first photo to
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:337
↓ 1 callers
Method
getWorkerThreads
()
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotConfig.java:45
↓ 1 callers
Method
kickChatMember
Kicks a user from a group or a supergroup. In the case of supergroups, the user will not be able to return to the group on their own using invite link
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:372
↓ 1 callers
Method
leaveChat
Use this method for your bot to leave a group, supergroup or channel. @param targetChatIdentifier unique identifier for the target group/supergroup o
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:384
↓ 1 callers
Method
newButton
Adds a new button in the row. @param text text of the new button
JTelegramBot Builders/src/io/fouad/jtb/core/builders/InlineKeyboardButtonBuilder.java:62
↓ 1 callers
Method
newRow
Starts a new row of the inline keyboard.
JTelegramBot Builders/src/io/fouad/jtb/core/builders/InlineKeyboardButtonBuilder.java:40
↓ 1 callers
Method
onCallbackQueryReceived
Invoked on receiving new incoming callback query. @param telegramBotApi reference to the Telegram Bot API @param id The update‘s unique identifier. U
JTelegramBot Core/src/io/fouad/jtb/core/UpdateHandler.java:85
↓ 1 callers
Method
onChosenInlineResultReceived
Invoked on receiving the result of an inline query that was chosen by a user and sent to their chat partner. @param telegramBotApi reference to the T
JTelegramBot Core/src/io/fouad/jtb/core/UpdateHandler.java:75
↓ 1 callers
Method
onEditedMessageReceived
Invoked on receiving new version of a message that is known to the bot and was edited. @param telegramBotApi reference to the Telegram Bot API @param
JTelegramBot Core/src/io/fouad/jtb/core/UpdateHandler.java:55
↓ 1 callers
Method
onGetUpdatesFailure
Invoked in case of an exception occurs when trying to get the new update. @param e the exception
JTelegramBot Core/src/io/fouad/jtb/core/UpdateHandler.java:92
↓ 1 callers
Method
onInlineQueryReceived
Invoked on receiving new incoming inline query. @param telegramBotApi reference to the Telegram Bot API @param id The update‘s unique identifier. Upd
JTelegramBot Core/src/io/fouad/jtb/core/UpdateHandler.java:65
↓ 1 callers
Method
onMessageReceived
Invoked on receiving new incoming message of any kind — text, photo, sticker, etc. @param telegramBotApi reference to the Telegram Bot API @param id
JTelegramBot Core/src/io/fouad/jtb/core/UpdateHandler.java:45
↓ 1 callers
Method
sendAudio
Sends audio files that Telegram clients will display them in the music player. Your audio must be in the .mp3 format. Bots can currently send audio fi
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:151
↓ 1 callers
Method
sendChatAction
Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:322
↓ 1 callers
Method
sendDocument
Sends general files. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. @param targetChatIden
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:173
↓ 1 callers
Method
sendLocation
Sends point on the map. @param targetChatIdentifier unique identifier for the target chat or username of the target channel @param latitude latitude
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:261
↓ 1 callers
Method
sendMessage
Sends text messages. @param targetChatIdentifier unique identifier for the target chat or username of the target channel @param text text of the mess
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:87
↓ 1 callers
Method
sendPhoto
Sends photos. @param targetChatIdentifier unique identifier for the target chat or username of the target channel @param mediaIdentifier photo to be
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:126
↓ 1 callers
Method
sendSticker
Sends .webp stickers. @param targetChatIdentifier unique identifier for the target chat or username of the target channel @param mediaIdentifier stic
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:193
↓ 1 callers
Method
sendVideo
Sends video files. Telegram clients support mp4 videos (other formats may be sent as Document). Bots can currently send video files of up to 50 MB in
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:218
↓ 1 callers
Method
sendVoice
Sends audio files that Telegram clients will display them as playable voice messages. For this to work, your audio must be in an .ogg file encoded wit
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:241
↓ 1 callers
Method
setCallbackData
(String callbackData)
JTelegramBot Core/src/io/fouad/jtb/core/beans/InlineKeyboardButton.java:87
↓ 1 callers
Method
setSwitchInlineQuery
(String switchInlineQuery)
JTelegramBot Core/src/io/fouad/jtb/core/beans/InlineKeyboardButton.java:90
↓ 1 callers
Method
setUrl
(String url)
JTelegramBot Core/src/io/fouad/jtb/core/beans/InlineKeyboardButton.java:84
↓ 1 callers
Method
start
Starts the bot in POLLING mode. This is a blocking method.
JTelegramBot Core/src/io/fouad/jtb/core/JTelegramBot.java:80
↓ 1 callers
Method
toString
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/Chat.java:122
↓ 1 callers
Method
unbanChatMember
Unbans a previously kicked user in a supergroup. The user will not return to the group automatically, but will be able to join via link, etc. The bot
JTelegramBot Core/src/io/fouad/jtb/core/TelegramBotApi.java:398
Method
AnsweringCallbackQueryNoId
(TelegramBotApi telegramBotApi)
JTelegramBot Builders/src/io/fouad/jtb/core/builders/ApiBuilder.java:2414
Method
AnsweringCallbackQueryReady
(TelegramBotApi telegramBotApi, String queryId)
JTelegramBot Builders/src/io/fouad/jtb/core/builders/ApiBuilder.java:2439
Method
AnsweringInlineQueryNoIdNoResults
(TelegramBotApi telegramBotApi)
JTelegramBot Builders/src/io/fouad/jtb/core/builders/ApiBuilder.java:2484
Method
AnsweringInlineQueryNoResults
(TelegramBotApi telegramBotApi, String queryId)
JTelegramBot Builders/src/io/fouad/jtb/core/builders/ApiBuilder.java:2507
Method
AnsweringInlineQueryReady
(TelegramBotApi telegramBotApi, String queryId, InlineQueryResult[] results)
JTelegramBot Builders/src/io/fouad/jtb/core/builders/ApiBuilder.java:2537
Method
ApiBuilder
()
JTelegramBot Builders/src/io/fouad/jtb/core/builders/ApiBuilder.java:46
Method
ApiTopLevel
(TelegramBotApi telegramBotApi)
JTelegramBot Builders/src/io/fouad/jtb/core/builders/ApiBuilder.java:62
Method
AsUserReady
(TelegramBotApi telegramBotApi)
JTelegramBot Builders/src/io/fouad/jtb/core/builders/ApiBuilder.java:516
Method
Audio
()
JTelegramBot Core/src/io/fouad/jtb/core/beans/Audio.java:73
next →
1–100 of 1,343, ranked by callers