# Options

{% tabs %}
{% tab title="TypeScript" %}

```typescript
import { Keyboard, Options } from 'degreet-telegram'
import { IContext } from 'degreet-telegram/src/types'

bot.listen(
  ['Hello, world', 'Hello!'],
  async (ctx: IContext): Promise<void> => {
    try {
      await ctx.msg.send(
        ctx.msg.text,
        new Keyboard('under_the_message')
          .btn('callback', 'Button text', 'button_action').row(),
        new Options()
          .disableWebPagePreview()
          .disableNotification()
          .replyTo(ctx.msg.id)
      )
    } catch (e: any) {
      console.error(e)
    }
  }
)
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const { Keyboard, Options } = require('degreet-telegram')

bot.listen(
  ['Hello, world', 'Hello!'],
  async (ctx) => {
    try {
      await ctx.msg.send(
        ctx.msg.text,
        new Keyboard('under_the_message')
          .btn('callback', 'Button text', 'button_action').row(),
        new Options()
          .disableWebPagePreview()
          .disableNotification()
          .replyTo(ctx.msg.id)
      )
    } catch (e) {
      console.error(e)
    }
  }
)
```

{% endtab %}
{% endtabs %}

You can also pass the 4th parameter to Keyboard.btn how true, and it will be hide

All types of Keyboard.btn: base for under\_the\_chat, callback and cb, requestContact, requestLocation, webApp, url, switchInlineQuery


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://degreetpro.gitbook.io/degreet-telegram/basics/options.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
