# Send dice

You can send dice with any emoji to get a random value. To send dice, use **Dice class-method**

#### Dice class-method take arguments:

<table><thead><tr><th data-type="number">Argument</th><th width="335.3333333333333">Description</th><th>Required</th></tr></thead><tbody><tr><td>1</td><td><a href="https://core.telegram.org/bots/api#senddice">Emoji</a></td><td>Optional. 🎲 by default</td></tr><tr><td>2</td><td><a href="https://core.telegram.org/bots/api#senddice">Options</a></td><td>Optional</td></tr></tbody></table>

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

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

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

  @OnCommand('start')
  async getDice(): Promise<Dice> {
    return new Dice();
  }
}
```

{% endcode %}
