# Copy or Forward a message

## Forward a message

To forward a message, use **Forward class-method** or `.forward` **answer/api method**

{% hint style="info" %}
You can read more about Api methods [here](https://degreetpro.gitbook.io/nestgram/config/api-class#api-methods)

You can read more about Answer class [here](https://degreetpro.gitbook.io/nestgram/nestgram-features/answer-class)
{% endhint %}

{% code title="app.controller.ts" %}

```typescript
import { Controller, OnCommand, UserId, Forward } from 'nestgram';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @OnCommand('start')
  async start(@UserId() userId: number): Promise<Forward> {
    return new Forward(userId);
  }
}

```

{% endcode %}

## Copy message

You can copy message. This is similar to forwarding messages, but the sender's name will be removed, and you can also change the message options. Use **Copy class-method** or `.copy` **answer/api method**

#### Copy class-method or .copy Answer method take arguments:

<table><thead><tr><th width="210.33333333333331" data-type="number">Argument</th><th>Description</th><th>Required</th></tr></thead><tbody><tr><td>1</td><td>Chat id you want to copy to</td><td><strong>Required</strong></td></tr><tr><td>2</td><td>Keyboard you want to add</td><td>Optional</td></tr><tr><td>3</td><td><a href="https://core.telegram.org/bots/api#copymessage">Options</a></td><td>Optional</td></tr></tbody></table>

{% code title="app.controller.ts" %}

```typescript
import { Controller, OnCommand, UserId, Copy, Keyboard, KeyboardTypes } from 'nestgram';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @OnCommand('start')
  async start(@UserId() userId: number): Promise<Copy> {
    return new Copy(userId, new Keyboard(KeyboardTypes.removeUnderTheChat));
  }
}
```

{% endcode %}

{% hint style="info" %}
If you want to know what arguments an API method takes, see the IDE hint
{% endhint %}
