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 LeaveChat
build()
LeaveChat.LeaveChatBuilder
callback(java.lang.Runnable callback)
LeaveChat.LeaveChatBuilder
chatId(ChatId chatId)
LeaveChat.LeaveChatBuilder
errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-