forwardMessage method

Future<Message> forwardMessage(
  1. ChatID chatId,
  2. ChatID fromChatId,
  3. int messageId, {
  4. bool? disableNotification,
  5. bool? protectContent,
})
inherited

Use this method to forward messages of any kind. Service messages can't be forwarded.

On success, the sent Message is returned.

Implementation

Future<Message> forwardMessage(
  ChatID chatId,
  ChatID fromChatId,
  int messageId, {
  bool? disableNotification,
  bool? protectContent,
}) {
  return _client.apiCall(_token, 'forwardMessage', {
    'chat_id': chatId,
    'from_chat_id': fromChatId,
    'message_id': messageId,
    'disable_notification': disableNotification,
    'protect_content': protectContent,
  });
}