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

x/grammy_types/message.ts>WriteAccessAllowed

Type declarations of the Telegram Bot API.
Go to Latest
interface WriteAccessAllowed
import { type WriteAccessAllowed } from "https://deno.land/x/grammy_types@v3.6.1/message.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