Record Class SendVenue
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.methods.SendVenue
public record SendVenue(@Nullable String businessConnectionId, @NotNull String chatId, int messageThreadId, long directMessagesTopicId, float latitude, float longitude, @NotNull String title, @NotNull String address, @Nullable String foursquareId, @Nullable String foursquareType, @Nullable String googlePlaceId, @Nullable String googlePlaceType, boolean disableNotification, boolean protectContent, boolean allowPaidBroadcast, String messageEffectId, @Nullable SuggestedPostParameters suggestedPostParameters, @Nullable ReplyParameters replyParameters, @Nullable ReplyKeyboard replyMarkup)
extends Record
implements ApiMethod<Venue>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface ApiMethod
OBJECT_MAPPER -
Constructor Summary
ConstructorsConstructorDescriptionSendVenue(@Nullable String businessConnectionId, @NotNull String chatId, int messageThreadId, long directMessagesTopicId, float latitude, float longitude, @NotNull String title, @NotNull String address, @Nullable String foursquareId, @Nullable String foursquareType, @Nullable String googlePlaceId, @Nullable String googlePlaceType, boolean disableNotification, boolean protectContent, boolean allowPaidBroadcast, String messageEffectId, @Nullable SuggestedPostParameters suggestedPostParameters, @Nullable ReplyParameters replyParameters, @Nullable ReplyKeyboard replyMarkup) Creates an instance of aSendVenuerecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringaddress()Returns the value of theaddressrecord component.booleanReturns the value of theallowPaidBroadcastrecord component.@Nullable StringReturns the value of thebusinessConnectionIdrecord component.@NotNull StringchatId()Returns the value of thechatIdrecord component.@NotNull VenuedeserializeResponse(@NotNull String answer) Deserializes the response from the Telegram Bot API.longReturns the value of thedirectMessagesTopicIdrecord component.booleanReturns the value of thedisableNotificationrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable StringReturns the value of thefoursquareIdrecord component.@Nullable StringReturns the value of thefoursquareTyperecord component.@NotNull StringReturns the endpoint URL for the Telegram Bot API method.@Nullable StringReturns the value of thegooglePlaceIdrecord component.@Nullable StringReturns the value of thegooglePlaceTyperecord component.final inthashCode()Returns a hash code value for this object.floatlatitude()Returns the value of thelatituderecord component.floatReturns the value of thelongituderecord component.Returns the value of themessageEffectIdrecord component.intReturns the value of themessageThreadIdrecord component.static @NotNull SendVenue.BuilderbooleanReturns the value of theprotectContentrecord component.@Nullable ReplyKeyboardReturns the value of thereplyMarkuprecord component.@Nullable ReplyParametersReturns the value of thereplyParametersrecord component.@Nullable SuggestedPostParametersReturns the value of thesuggestedPostParametersrecord component.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface ApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable
-
Constructor Details
-
SendVenue
public SendVenue(@Nullable @Nullable String businessConnectionId, @NotNull @NotNull String chatId, int messageThreadId, long directMessagesTopicId, float latitude, float longitude, @NotNull @NotNull String title, @NotNull @NotNull String address, @Nullable @Nullable String foursquareId, @Nullable @Nullable String foursquareType, @Nullable @Nullable String googlePlaceId, @Nullable @Nullable String googlePlaceType, boolean disableNotification, boolean protectContent, boolean allowPaidBroadcast, String messageEffectId, @Nullable @Nullable SuggestedPostParameters suggestedPostParameters, @Nullable @Nullable ReplyParameters replyParameters, @Nullable @Nullable ReplyKeyboard replyMarkup) Creates an instance of aSendVenuerecord class.- Parameters:
businessConnectionId- the value for thebusinessConnectionIdrecord componentchatId- the value for thechatIdrecord componentmessageThreadId- the value for themessageThreadIdrecord componentdirectMessagesTopicId- the value for thedirectMessagesTopicIdrecord componentlatitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord componenttitle- the value for thetitlerecord componentaddress- the value for theaddressrecord componentfoursquareId- the value for thefoursquareIdrecord componentfoursquareType- the value for thefoursquareTyperecord componentgooglePlaceId- the value for thegooglePlaceIdrecord componentgooglePlaceType- the value for thegooglePlaceTyperecord componentdisableNotification- the value for thedisableNotificationrecord componentprotectContent- the value for theprotectContentrecord componentallowPaidBroadcast- the value for theallowPaidBroadcastrecord componentmessageEffectId- the value for themessageEffectIdrecord componentsuggestedPostParameters- the value for thesuggestedPostParametersrecord componentreplyParameters- the value for thereplyParametersrecord componentreplyMarkup- the value for thereplyMarkuprecord component
-
-
Method Details
-
ofBuilder
@NotNull public static @NotNull SendVenue.Builder ofBuilder(String chatId, float latitude, float longitude, String title, String address) -
getEndpointURL
Description copied from interface:ApiMethodReturns the endpoint URL for the Telegram Bot API method.- Specified by:
getEndpointURLin interfaceApiMethod<Venue>- Returns:
- the endpoint URL
-
deserializeResponse
@NotNull public @NotNull Venue deserializeResponse(@NotNull @NotNull String answer) throws TelegramRequestException Description copied from interface:ApiMethodDeserializes the response from the Telegram Bot API.- Specified by:
deserializeResponsein interfaceApiMethod<Venue>- Parameters:
answer- the response from the Telegram Bot API- Returns:
- the deserialized response
- Throws:
TelegramRequestException- if an error occurs while deserializing the response
-
toBuilder
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
businessConnectionId
Returns the value of thebusinessConnectionIdrecord component.- Returns:
- the value of the
businessConnectionIdrecord component
-
chatId
Returns the value of thechatIdrecord component.- Returns:
- the value of the
chatIdrecord component
-
messageThreadId
public int messageThreadId()Returns the value of themessageThreadIdrecord component.- Returns:
- the value of the
messageThreadIdrecord component
-
directMessagesTopicId
public long directMessagesTopicId()Returns the value of thedirectMessagesTopicIdrecord component.- Returns:
- the value of the
directMessagesTopicIdrecord component
-
latitude
public float latitude()Returns the value of thelatituderecord component.- Returns:
- the value of the
latituderecord component
-
longitude
public float longitude()Returns the value of thelongituderecord component.- Returns:
- the value of the
longituderecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
foursquareId
Returns the value of thefoursquareIdrecord component.- Returns:
- the value of the
foursquareIdrecord component
-
foursquareType
Returns the value of thefoursquareTyperecord component.- Returns:
- the value of the
foursquareTyperecord component
-
googlePlaceId
Returns the value of thegooglePlaceIdrecord component.- Returns:
- the value of the
googlePlaceIdrecord component
-
googlePlaceType
Returns the value of thegooglePlaceTyperecord component.- Returns:
- the value of the
googlePlaceTyperecord component
-
disableNotification
public boolean disableNotification()Returns the value of thedisableNotificationrecord component.- Returns:
- the value of the
disableNotificationrecord component
-
protectContent
public boolean protectContent()Returns the value of theprotectContentrecord component.- Returns:
- the value of the
protectContentrecord component
-
allowPaidBroadcast
public boolean allowPaidBroadcast()Returns the value of theallowPaidBroadcastrecord component.- Returns:
- the value of the
allowPaidBroadcastrecord component
-
messageEffectId
Returns the value of themessageEffectIdrecord component.- Returns:
- the value of the
messageEffectIdrecord component
-
suggestedPostParameters
Returns the value of thesuggestedPostParametersrecord component.- Returns:
- the value of the
suggestedPostParametersrecord component
-
replyParameters
Returns the value of thereplyParametersrecord component.- Returns:
- the value of the
replyParametersrecord component
-
replyMarkup
Returns the value of thereplyMarkuprecord component.- Returns:
- the value of the
replyMarkuprecord component
-