Package com.fussuchalice.bot
Class DropboxUnofficialBot
java.lang.Object
org.telegram.telegrambots.meta.bots.AbsSender
org.telegram.telegrambots.bots.DefaultAbsSender
org.telegram.telegrambots.bots.TelegramLongPollingBot
com.fussuchalice.bot.DropboxUnofficialBot
- All Implemented Interfaces:
org.telegram.telegrambots.meta.generics.LongPollingBot
,org.telegram.telegrambots.meta.generics.TelegramBot
public class DropboxUnofficialBot
extends org.telegram.telegrambots.bots.TelegramLongPollingBot
The `DropboxUnofficialBot` class is the main class for the Telegram bot application. It extends TelegramLongPollingBot
and handles user interactions and Dropbox integration.
-
Field Summary
Fields inherited from class org.telegram.telegrambots.bots.DefaultAbsSender
exe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getPathByMessageText
(String messageText) Extracts the path from a message text enclosed in double quotes.void
onUpdateReceived
(org.telegram.telegrambots.meta.api.objects.Update update) void
sendMessage
(long chatId, String messageText) Sends a text message to the specified chat.Methods inherited from class org.telegram.telegrambots.bots.TelegramLongPollingBot
clearWebhook, onClosing
Methods inherited from class org.telegram.telegrambots.bots.DefaultAbsSender
downloadFile, downloadFile, downloadFile, downloadFile, downloadFileAsStream, downloadFileAsStream, downloadFileAsync, downloadFileAsync, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, getBaseUrl, getOptions, sendApiMethod, sendApiMethodAsync, sendApiMethodAsync
Methods inherited from class org.telegram.telegrambots.meta.bots.AbsSender
execute, executeAsync, executeAsync, getMe, getMeAsync, getMeAsync, getWebhookInfo, getWebhookInfoAsync, getWebhookInfoAsync
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.telegram.telegrambots.meta.generics.LongPollingBot
getOptions, onUpdatesReceived
Methods inherited from interface org.telegram.telegrambots.meta.generics.TelegramBot
onRegister
-
Constructor Details
-
DropboxUnofficialBot
public DropboxUnofficialBot()
-
-
Method Details
-
onUpdateReceived
public void onUpdateReceived(org.telegram.telegrambots.meta.api.objects.Update update) -
getPathByMessageText
Extracts the path from a message text enclosed in double quotes.- Parameters:
messageText
- The message text that may contain a path enclosed in double quotes.- Returns:
- The extracted path or null if not found.
-
sendMessage
Sends a text message to the specified chat.- Parameters:
chatId
- The chat ID where the message will be sent.messageText
- The text message to send.
-
getBotUsername
-
getBotToken
- Specified by:
getBotToken
in interfaceorg.telegram.telegrambots.meta.generics.TelegramBot
- Overrides:
getBotToken
in classorg.telegram.telegrambots.bots.DefaultAbsSender
-