Business ProfileUSER-ONLY
User Walkthrough 26 of 50
Telegram Business users can configure their public business information and automated messages.
Location and Hours
setLocation sets the business location, and setWorkingHours sets its hours.
await client.setLocation({ address: "123 Main Street" });
await client.setWorkingHours({ workingHours });
Introduction
setBusinessIntro publishes the business introduction; removeBusinessIntro removes it.
await client.setBusinessIntro("Welcome", "How can we help?");
await client.removeBusinessIntro();
Greeting and Away Messages
The greeting is managed by setBusinessGreetingMessage and removeBusinessGreetingMessage.
The corresponding away-message methods are setBusinessAwayMessage and removeBusinessAwayMessage.
await client.setBusinessGreetingMessage(shortcutId, recipients, 7);
await client.removeBusinessGreetingMessage();
await client.setBusinessAwayMessage(shortcutId, schedule, recipients);
await client.removeBusinessAwayMessage();
Connected Bots
Pause or resume a connected bot through pauseBusinessBotConnection and resumeBusinessBotConnection. For a specific chat, disableBusinessBots and enableBusinessBots control business bot access.
await client.pauseBusinessBotConnection(chatId);
await client.resumeBusinessBotConnection(chatId);
await client.disableBusinessBots(chatId);
await client.enableBusinessBots(chatId);