> For the complete documentation index, see [llms.txt](https://matebot-app.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://matebot-app.gitbook.io/untitled/scripting/api.md).

# API

Access Telegram Bot API and methods.

MateBot uses grammY framework internally to build your bots, so it's is recommended to always check grammY documentation website for any updates. Also you can check official [Telegram Docs](https://core.telegram.org/bots/api#available-methods) for method related queries.

Here are some examples on how to use API methods in MateBot Script.

**Send message to any chat using chat\_id.**

```javascript
Bot.api.sendMessage(12345, "Hello!");
```
