Class SendPaidMedia
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<SendPaidMedia, Message>
io.github.natanimn.telebof.requests.send.SendPaidMedia
SendPaidMedia class. Returns 
Message on success.- Since:
- 3 March 2025
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionSendPaidMedia(Object chat_id, short star_count, InputPaidMedia[] media, Api api) Required
- 
Method SummaryModifier and TypeMethodDescriptionbusinessConnectionId(String business_connection_id) OptionalOptionalcaptionEntities(MessageEntity[] caption_entities) OptionaldirectMessagesTopicId(int direct_messages_topic_id) OptionaldisableNotification(boolean disable_notification) OptionalOptionalOptionalprotectContent(boolean protect_content) OptionalreplyMarkup(Markup reply_markup) OptionalreplyParameters(ReplyParameters reply_parameters) OptionalshowCaptionAboveMedia(boolean show_caption_above_media) OptionalsuggestedPostParameters(SuggestedPostParameters suggested_post_parameters) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequestexec
- 
Constructor Details- 
SendPaidMediaRequired- Parameters:
- chat_id- chat id
- star_count- star count
- media- input media
- api- api
 
 
- 
- 
Method Details- 
captionOptional- Parameters:
- caption- Media caption, 0-1024 characters after entities parsing
- Returns:
- SendPaidMedia
 
- 
captionEntitiesOptional- Parameters:
- caption_entities- A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
- Returns:
- SendPaidMedia
 
- 
parseModeOptional- Parameters:
- parse_mode- Mode for parsing entities in the media caption.
- Returns:
- SendPaidMedia
 
- 
disableNotificationOptional- Parameters:
- disable_notification- Sends the message silently. Users will receive a notification with no sound.
- Returns:
- SendPaidMedia
 
- 
protectContentOptional- Parameters:
- protect_content- Protects the contents of the sent message from forwarding and saving
- Returns:
- SendPaidMedia
 
- 
replyParametersOptional- Parameters:
- reply_parameters- Description of the message to reply to
- Returns:
- SendPaidMedia
 
- 
replyMarkupOptional- 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:
- SendPaidMedia
 
- 
showCaptionAboveMediaOptional- Parameters:
- show_caption_above_media- Pass True, if the caption must be shown above the message media
- Returns:
- SendPaidMedia
 
- 
businessConnectionIdOptional- Parameters:
- business_connection_id- Unique identifier of the business connection on behalf of which the message will be sent
- Returns:
- SendPaidMedia
 
- 
payloadOptional- Parameters:
- payload- Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user, use it for your internal processes.
- Returns:
- SendPaidMedia
 
- 
directMessagesTopicIdOptional- Parameters:
- direct_messages_topic_id- Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
- Returns:
- SendPaidMedia
 
- 
suggestedPostParametersOptional- 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:
- SendPaidMedia
 
 
-