Package com.pengrad.telegrambot
Class TelegramBot.Builder
- java.lang.Object
-
- com.pengrad.telegrambot.TelegramBot.Builder
-
- Enclosing class:
- TelegramBot
public static final class TelegramBot.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String botToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TelegramBot.Builder
apiUrl(java.lang.String apiUrl)
TelegramBot
build()
TelegramBot.Builder
debug()
TelegramBot.Builder
fileApiUrl(java.lang.String fileApiUrl)
TelegramBot.Builder
okHttpClient(okhttp3.OkHttpClient client)
TelegramBot.Builder
updateListenerSleep(long millis)
-
-
-
Method Detail
-
debug
public TelegramBot.Builder debug()
-
okHttpClient
public TelegramBot.Builder okHttpClient(okhttp3.OkHttpClient client)
-
apiUrl
public TelegramBot.Builder apiUrl(java.lang.String apiUrl)
-
fileApiUrl
public TelegramBot.Builder fileApiUrl(java.lang.String fileApiUrl)
-
updateListenerSleep
public TelegramBot.Builder updateListenerSleep(long millis)
-
build
public TelegramBot build()
-
-