forwardHere method
Forwards the current message to the same chat (useful for highlighting).
This is a convenience method that forwards the current message to the same chat it was sent from. Useful for highlighting or bookmarking messages.
Example:
// Highlight the current message
await ctx.forwardHere(protectContent: true);
Implementation
Future<Message> forwardHere({
bool? disableNotification,
int? messageThreadId,
bool? protectContent,
int? videoStartTimestamp,
int? directMessagesTopicId,
SuggestedPostParameters? suggestedPostParameters,
}) async {
final chatId = _getChatId();
_verifyInfo(
[chatId],
APIMethod.forwardMessage,
description: "No chat information found in the current update.",
);
return forwardMessage(
chatId!,
disableNotification: disableNotification,
messageThreadId: _threadId(messageThreadId),
protectContent: protectContent,
videoStartTimestamp: videoStartTimestamp,
directMessagesTopicId: directMessagesTopicId,
suggestedPostParameters: suggestedPostParameters,
);
}