# Nestgram

## Nestgram

- [About Nestgram](https://degreetpro.gitbook.io/nestgram/about-nestgram.md): About Nestgram
- [Guide](https://degreetpro.gitbook.io/nestgram/guide.md): A guide how to get started with Nestgram
- [News](https://degreetpro.gitbook.io/nestgram/news.md): Nestgram news
- [Handling commands](https://degreetpro.gitbook.io/nestgram/handling-updates/handling-commands.md): Handle when user writes a command (e.g. /start, /help, /menu)
- [Handling text messages](https://degreetpro.gitbook.io/nestgram/handling-updates/handling-text-messages.md): Handle when user writes a text messages (e.g. "Hello, world!")
- [Handling other updates](https://degreetpro.gitbook.io/nestgram/handling-updates/handling-other-updates.md): Handle other updates
- [Entities: url, email and other](https://degreetpro.gitbook.io/nestgram/handling-updates/entities-url-email-and-other.md): Handle when user writes some entities (url, email, phone\_number, hashtag, and other)
- [Other arguments in handler](https://degreetpro.gitbook.io/nestgram/handling-updates/other-arguments-in-handler.md): More parameter decorators (e.g. @Text, @Answ, @Message, @Update, @Entity)
- [Handling media files and download it](https://degreetpro.gitbook.io/nestgram/handling-updates/handling-media-files-and-download-it.md): Handle when the user sends some media file (e.g. video, photo, audio) and download it
- [Services](https://degreetpro.gitbook.io/nestgram/nestgram-features/services.md): Use services for messages & working with db
- [Middlewares and Params](https://degreetpro.gitbook.io/nestgram/nestgram-features/middlewares-and-params.md): Middlewares
- [Sending messages correctly](https://degreetpro.gitbook.io/nestgram/nestgram-features/sending-messages-correctly.md): How to send message correctly in a controller handler
- [Answer class](https://degreetpro.gitbook.io/nestgram/nestgram-features/answer-class.md): Sends many messages, reply to the messages in middlewares
- [Scopes](https://degreetpro.gitbook.io/nestgram/nestgram-features/scopes.md): IN DEVELOPMENT. You can enter/leave scope
- [States](https://degreetpro.gitbook.io/nestgram/nestgram-features/states.md): You can use states to store user data
- [Views](https://degreetpro.gitbook.io/nestgram/nestgram-features/views.md): You can enter view
- [Sending a photo, video and other media](https://degreetpro.gitbook.io/nestgram/messages/sending-a-photo-video-and-other-media.md): Sending a media by url or path
- [Sending a media group](https://degreetpro.gitbook.io/nestgram/messages/sending-a-media-group.md): You can send a group of the media messages (e.g. 3 photos & 2 videos)
- [Send location (live) or venue](https://degreetpro.gitbook.io/nestgram/messages/send-location-live-or-venue.md): You can send location and live location
- [Send contact](https://degreetpro.gitbook.io/nestgram/messages/send-contact.md): You can send a contact (phone number, first name, last name, user if of the user)
- [Send poll](https://degreetpro.gitbook.io/nestgram/messages/send-poll.md): You can send poll to the channel or to the user
- [Send dice](https://degreetpro.gitbook.io/nestgram/messages/send-dice.md): You can send dice to get a random value
- [Edit/delete messages](https://degreetpro.gitbook.io/nestgram/messages/edit-delete-messages.md): You can edit or delete messages
- [Copy or Forward a message](https://degreetpro.gitbook.io/nestgram/messages/copy-or-forward-a-message.md): Copy or forward a message
- [Keyboard types, building keyboard](https://degreetpro.gitbook.io/nestgram/keyboards/keyboard-types-building-keyboard.md): You can add keyboard to the chat or to the message using Keyboard class
- [Handle underTheMessage keyboard button click by Alert or Toast](https://degreetpro.gitbook.io/nestgram/keyboards/handle-underthemessage-keyboard-button-click-by-alert-or-toast.md): Handle underTheMessage keyboard button click by Alert or Toast
- [Keyboard layouts](https://degreetpro.gitbook.io/nestgram/keyboards/keyboard-layouts.md): You can save the keyboard as a layout and reuse it.
- [CLI](https://degreetpro.gitbook.io/nestgram/config/cli.md): The Nestgram CLI
- [Webhooks and run config](https://degreetpro.gitbook.io/nestgram/config/webhooks-and-run-config.md): You can run bot using webhooks
- [Api class](https://degreetpro.gitbook.io/nestgram/config/api-class.md): You can use an Api class to send a message to another users and more
- [Modules](https://degreetpro.gitbook.io/nestgram/config/modules.md): Modules
- [Mongo module](https://degreetpro.gitbook.io/nestgram/config/modules/mongo-module.md): You can use mongoose in your projects
- [Controller Helper class](https://degreetpro.gitbook.io/nestgram/config/controller-helper-class.md): About controller helper that helps you with some easy tasks
- [Set chat action](https://degreetpro.gitbook.io/nestgram/api-reference/set-chat-action.md): You can set chat action (e.g. typing)
- [Save user profile photo](https://degreetpro.gitbook.io/nestgram/api-reference/save-user-profile-photo.md): You can save any user profile photo by index
- [Ban, unban user or chat](https://degreetpro.gitbook.io/nestgram/api-reference/ban-unban-user-or-chat.md): You can ban and unban chat member
- [Restrict or Promote user](https://degreetpro.gitbook.io/nestgram/api-reference/restrict-or-promote-user.md): You can restrict or promote chat member
- [Set chat permissions](https://degreetpro.gitbook.io/nestgram/api-reference/set-chat-permissions.md): You can set chat permissions (permissions for all users by default)
- [Set chat admin custom title](https://degreetpro.gitbook.io/nestgram/api-reference/set-chat-admin-custom-title.md): You can set custom title (post, job title) for admin
- [Chat invite links](https://degreetpro.gitbook.io/nestgram/api-reference/chat-invite-links.md): You can export chat invite link
- [Join requests](https://degreetpro.gitbook.io/nestgram/api-reference/join-requests.md): You can approve or decline chat join request
- [Update chat info, photo, title, description and more](https://degreetpro.gitbook.io/nestgram/api-reference/update-chat-info-photo-title-description-and-more.md): You can update chat info: set photo, delete it, update title or description
- [Pin or unpin messages](https://degreetpro.gitbook.io/nestgram/api-reference/pin-or-unpin-messages.md): You can pin, unpin (unpin all also) messages
- [Get chat info, leave chat](https://degreetpro.gitbook.io/nestgram/api-reference/get-chat-info-leave-chat.md): You can get chat info: chat member count, chat info, chat admins, chat member and other
- [Check user subscription](https://degreetpro.gitbook.io/nestgram/api-reference/check-user-subscription.md): You can check the user's subscription to a channel or group
- [Chat sticker set](https://degreetpro.gitbook.io/nestgram/api-reference/chat-sticker-set.md): You can set chat sticker set or delete it
- [My commands](https://degreetpro.gitbook.io/nestgram/api-reference/my-commands.md): You can set/delete/get my bot commands
- [My default admin rights](https://degreetpro.gitbook.io/nestgram/api-reference/my-default-admin-rights.md): You can set/get my default administrator rights
- [Menu button](https://degreetpro.gitbook.io/nestgram/api-reference/menu-button.md): You can set/get menu button


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://degreetpro.gitbook.io/nestgram/about-nestgram.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.
