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

public abstract class SendBuilder<T,R> extends AbstractBaseRequest<T,R>
Common parameters builder for sendXyz methods
Since:
3 March 2025
  • Constructor Details

  • Method Details

    • messageThreadId

      public T messageThreadId(int message_thread_id)
      Optional
      Parameters:
      message_thread_id - Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
      Returns:
      T
    • parseMode

      public T parseMode(ParseMode parse_mode)
      Optional
      Parameters:
      parse_mode - Mode for parsing entities in the message text.
      Returns:
    • disableWebPagePreview

      public T disableWebPagePreview(boolean disable_web_page_preview)
    • disableNotification

      public T disableNotification(boolean disable_notification)
      Optional
      Parameters:
      disable_notification - Sends the message silently. Users will receive a notification with no sound.
      Returns:
      T
    • protectContent

      public T protectContent(boolean protect_content)
      Optional
      Parameters:
      protect_content - Protects the contents of the sent message from forwarding and saving
      Returns:
      T
    • replyParameters

      public T replyParameters(ReplyParameters reply_parameters)
      Optional
      Parameters:
      reply_parameters - Description of the message to reply to
      Returns:
      T
    • replyMarkup

      public T replyMarkup(Markup reply_markup)
      Optional
      Parameters:
      reply_markup - Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
      Returns:
      T
    • businessConnectionId

      public T businessConnectionId(String business_connection_id)
      Optional
      Parameters:
      business_connection_id - Unique identifier of the business connection on behalf of which the message will be sent
      Returns:
      T
    • messageEffectId

      public T messageEffectId(String message_effect_id)
      Optional
      Parameters:
      message_effect_id - Unique identifier of the message effect to be added to the message; for private chats only
      Returns:
      T
    • allowPaidBroadcast

      public T allowPaidBroadcast(boolean allow_paid_broadcast)
      Optional
      Parameters:
      allow_paid_broadcast - Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
      Returns:
      T