Module

x/grammy/types.ts>WriteAccessAllowed

The Telegram Bot Framework.
Very Popular
Go to Latest
interface WriteAccessAllowed
import { type WriteAccessAllowed } from "https://dotland.deno.dev/x/grammy@v1.20.2/types.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