Class SendContact
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<SendContact,Message>
io.github.natanimn.telebof.requests.send.SendBuilder<SendContact,Message>
io.github.natanimn.telebof.requests.send.SendContact
SendContact class. Returns sent
Message on success.- Since:
- 3 March 2025
- Version:
- 1.3.0
- Author:
- Natanim
-
Field Summary
Fields inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
api, methodName, parameters -
Constructor Summary
ConstructorsConstructorDescriptionSendContact(Object chatId, String phoneNumber, String firstName, Api api) Required -
Method Summary
Modifier and TypeMethodDescriptiondisableWebPagePreview(boolean disableWebPagePreview) Deprecated, for removal: This API element is subject to removal in a future version.OptionalDeprecated, for removal: This API element is subject to removal in a future version.OptionalMethods inherited from class io.github.natanimn.telebof.requests.send.SendBuilder
allowPaidBroadcast, businessConnectionId, directMessagesTopicId, disableNotification, messageEffectId, messageThreadId, protectContent, replyMarkup, replyParameters, suggestedPostParametersMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
add, exec, getContentType, getMethodName, getParameters, getResponseType, hasMultipart, setHasMultipart
-
Constructor Details
-
SendContact
Required- Parameters:
chatId- chat idphoneNumber- phone numberfirstName- first nameapi- api
-
-
Method Details
-
lastName
Optional- Parameters:
lastName- Contact's last name- Returns:
SendContact
-
vcard
Optional- Parameters:
vcard- Additional data about the contact in the form of a vCard, 0-2048 bytes- Returns:
SendContact
-
parseMode
Deprecated, for removal: This API element is subject to removal in a future version.Not Implemented- Overrides:
parseModein classSendBuilder<SendContact,Message> - Parameters:
parseMode- Mode for parsing entities in the message text.- Returns:
SendBuilder
-
disableWebPagePreview
@Deprecated(forRemoval=true) public SendContact disableWebPagePreview(boolean disableWebPagePreview) Deprecated, for removal: This API element is subject to removal in a future version.Not Implemented- Overrides:
disableWebPagePreviewin classSendBuilder<SendContact,Message>
-