Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/grammy_types/message.ts>WriteAccessAllowed

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