typescript-telegram-bot-api
Version:
Telegram Bot API wrapper for Node.js written in TypeScript
22 lines (21 loc) • 788 B
TypeScript
/**
* ## WriteAccessAllowed
* 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.
* @see https://core.telegram.org/bots/api#writeaccessallowed
*/
export type WriteAccessAllowed = {
/**
* True, if the user can write custom messages
*/
from_request?: boolean;
/**
* Optional. Name of the Web App, if the access was granted when the Web App was launched from a link
*/
web_app_name?: string;
/**
* Optional. True, if the access was granted when the bot was added to the attachment or side menu
*/
from_attachment_menu?: boolean;
};