Class SendContact.SendContactBuilder
- java.lang.Object
-
- com.jtelegram.api.requests.message.send.SendContact.SendContactBuilder
-
- Enclosing class:
- SendContact
public static class SendContact.SendContactBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SendContact
build()
SendContact.SendContactBuilder
callback(java.util.function.Consumer<ContactMessage> callback)
SendContact.SendContactBuilder
chatId(ChatId chatId)
SendContact.SendContactBuilder
disableNotification(java.lang.Boolean disableNotification)
SendContact.SendContactBuilder
errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendContact.SendContactBuilder
firstName(java.lang.String firstName)
SendContact.SendContactBuilder
lastName(java.lang.String lastName)
SendContact.SendContactBuilder
phoneNumber(java.lang.String phoneNumber)
SendContact.SendContactBuilder
replyMarkup(ReplyMarkup replyMarkup)
SendContact.SendContactBuilder
replyToMessageId(java.lang.Integer replyToMessageId)
java.lang.String
toString()
SendContact.SendContactBuilder
vcard(java.lang.String vcard)
-
-
-
Method Detail
-
callback
public SendContact.SendContactBuilder callback(java.util.function.Consumer<ContactMessage> callback)
-
errorHandler
public SendContact.SendContactBuilder errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
chatId
public SendContact.SendContactBuilder chatId(ChatId chatId)
-
replyToMessageId
public SendContact.SendContactBuilder replyToMessageId(java.lang.Integer replyToMessageId)
-
disableNotification
public SendContact.SendContactBuilder disableNotification(java.lang.Boolean disableNotification)
-
replyMarkup
public SendContact.SendContactBuilder replyMarkup(ReplyMarkup replyMarkup)
-
phoneNumber
public SendContact.SendContactBuilder phoneNumber(java.lang.String phoneNumber)
-
firstName
public SendContact.SendContactBuilder firstName(java.lang.String firstName)
-
lastName
public SendContact.SendContactBuilder lastName(java.lang.String lastName)
-
vcard
public SendContact.SendContactBuilder vcard(java.lang.String vcard)
-
build
public SendContact build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-