import * as myGrammy from "https://deno.land/x/my_grammy@v0.0.8/deps.ts";
Classes
c Bot | This is the single most important class of grammY. It represents your bot. |
The composer is the heart of the middleware system in grammY. It is also the
superclass of | |
When your bot receives a message, Telegram sends an update object to your bot. The update contains information about the chat, the user, and of course the message itself. There are numerous other updates, too: https://core.telegram.org/bots/api#update | |
Use this class to simplify building an inline keyboard (something like this: https://core.telegram.org/bots/features#inline-keyboards). | |
Variables
v env | |
Hydrates a context with an additional set of reply methods | |
Creates a new transformer for the given parse mode. |
Functions
f run | Runs a grammY bot with long polling. Updates are processed concurrently with
a default maximum concurrency of 500 updates. Calls to |
Using a runner for grammY allows your bot to run middleware concurrently. This has the benefit that multiple messages can be processed concurrently, hence making your bot drastically more scalable, but it comes at the cost that race conditions may occur because some messages need to be processed in order. | |
Session middleware provides a persistent data storage for your bot. You can
use it to let your bot remember any data you want, for example the messages
it sent or received in the past. This is done by attaching session data to
every chat. The stored data is then provided on the context object under
| |
Interfaces
A session flavor is a context flavor that holds session data under
|
Type Aliases
Represents a filter query that can be passed to | |
Context flavor for |