Package com.jtelegram.api.requests.chat
Class LeaveChat.LeaveChatBuilder
- java.lang.Object
-
- com.jtelegram.api.requests.chat.LeaveChat.LeaveChatBuilder
-
- Enclosing class:
- LeaveChat
public static class LeaveChat.LeaveChatBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeaveChatbuild()LeaveChat.LeaveChatBuildercallback(java.lang.Runnable callback)LeaveChat.LeaveChatBuilderchatId(ChatId chatId)LeaveChat.LeaveChatBuildererrorHandler(java.util.function.Consumer<TelegramException> errorHandler)java.lang.StringtoString()
-
-
-
Method Detail
-
errorHandler
public LeaveChat.LeaveChatBuilder errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
callback
public LeaveChat.LeaveChatBuilder callback(java.lang.Runnable callback)
-
chatId
public LeaveChat.LeaveChatBuilder chatId(ChatId chatId)
-
build
public LeaveChat build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-