Class SendBuilder<T,R>
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<T,R>
io.github.natanimn.telebof.requests.send.SendBuilder<T,R>
- Direct Known Subclasses:
SendAnimation,SendAudio,SendContact,SendDocument,SendGame,SendInvoice,SendMediaGroup,SendMessage,SendPhoto,SendSticker,SendVenue,SendVideo,SendVideoNote,SendVoice
Common parameters builder for sendXyz methods
- Since:
- 3 March 2025
-
Constructor Summary
ConstructorsConstructorDescriptionSendBuilder(Object chatId, Api api, String methodName) SendBuilder(Object chatId, Api api, String methodName, Type type) -
Method Summary
Modifier and TypeMethodDescriptionallowPaidBroadcast(boolean allow_paid_broadcast) OptionalbusinessConnectionId(String business_connection_id) OptionaldirectMessagesTopicId(int direct_messages_topic_id) OptionaldisableNotification(boolean disable_notification) OptionaldisableWebPagePreview(boolean disable_web_page_preview) messageEffectId(String message_effect_id) OptionalmessageThreadId(int message_thread_id) OptionalOptionalprotectContent(boolean protect_content) OptionalreplyMarkup(Markup reply_markup) OptionalreplyParameters(ReplyParameters reply_parameters) OptionalsuggestedPostParameters(SuggestedPostParameters suggested_post_parameters) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
SendBuilder
-
SendBuilder
-
-
Method Details
-
messageThreadId
-
parseMode
-
disableWebPagePreview
-
disableNotification
-
protectContent
-
replyParameters
Optional- Parameters:
reply_parameters- Description of the message to reply to- Returns:
T
-
replyMarkup
-
businessConnectionId
-
messageEffectId
-
allowPaidBroadcast
-
directMessagesTopicId
-
suggestedPostParameters
Optional- Parameters:
suggested_post_parameters- A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.- Returns:
T
-