Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy/types.web.ts>WriteAccessAllowed

The Telegram Bot Framework.
Very Popular
Latest
interface WriteAccessAllowed
import { type WriteAccessAllowed } from "https://deno.land/x/grammy@v1.32.0/types.web.ts";

This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.

Properties

optional
from_request: boolean

True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess

optional
web_app_name: string

Name of the Web App, if the access was granted when the Web App was launched from a link

optional
from_attachment_menu: boolean

True, if the access was granted when the bot was added to the attachment or side menu