Class ForwardMessage
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<ForwardMessage, Message>
io.github.natanimn.telebof.requests.service.ForwardMessage
ForwardMessage class.
Returns
Message on success.- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionForwardMessage(Object chat_id, Object from_chat_id, int message_id, Api api) Required -
Method Summary
Modifier and TypeMethodDescriptiondirectMessagesTopicId(int direct_messages_topic_id) OptionaldisableNotification(boolean disable_notification) OptionalmessageThreadId(int message_thread_id) OptionalprotectContent(boolean protect_content) OptionalsuggestedPostParameters(SuggestedPostParameters suggested_post_parameters) OptionalvideoStartTimestamp(int video_start_timestamp) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
ForwardMessage
-
-
Method Details
-
messageThreadId
Optional- Parameters:
message_thread_id- Unique identifier for the target message thread (topic) of the forum; for forum supergroups only- Returns:
ForwardMessage
-
disableNotification
Optional- Parameters:
disable_notification- Sends the message silently. Users will receive a notification with no sound.- Returns:
ForwardMessage
-
protectContent
Optional- Parameters:
protect_content- Protects the contents of the forwarded message from forwarding and saving- Returns:
ForwardMessage
-
videoStartTimestamp
Optional- Parameters:
video_start_timestamp- New start timestamp for the forwarded video in the message- Returns:
ForwardMessage
-
directMessagesTopicId
Optional- 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:
ForwardMessage
-
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:
ForwardMessage
-