Package com.jtelegram.api.requests
Class GetUpdates.GetUpdatesBuilder
- java.lang.Object
-
- com.jtelegram.api.requests.GetUpdates.GetUpdatesBuilder
-
- Enclosing class:
- GetUpdates
public static class GetUpdates.GetUpdatesBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetUpdates.GetUpdatesBuilder
allowedUpdates(java.util.List<UpdateType> allowedUpdates)
GetUpdates
build()
GetUpdates.GetUpdatesBuilder
callback(java.util.function.Consumer<Update[]> callback)
GetUpdates.GetUpdatesBuilder
errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
GetUpdates.GetUpdatesBuilder
limit(int limit)
GetUpdates.GetUpdatesBuilder
offset(int offset)
GetUpdates.GetUpdatesBuilder
timeout(int timeout)
java.lang.String
toString()
-
-
-
Method Detail
-
callback
public GetUpdates.GetUpdatesBuilder callback(java.util.function.Consumer<Update[]> callback)
-
errorHandler
public GetUpdates.GetUpdatesBuilder errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
offset
public GetUpdates.GetUpdatesBuilder offset(int offset)
-
limit
public GetUpdates.GetUpdatesBuilder limit(int limit)
-
timeout
public GetUpdates.GetUpdatesBuilder timeout(int timeout)
-
allowedUpdates
public GetUpdates.GetUpdatesBuilder allowedUpdates(java.util.List<UpdateType> allowedUpdates)
-
build
public GetUpdates build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-