Business Connection #1275
Unanswered
qyat627-lgtm
asked this question in
Q&A
Replies: 1 comment
-
|
Hi! You can handle bot business connections using the on('connected_bot') event: bot.on('connected_bot', (msg) => {
const connection = msg.business_connection;
console.log('New bot connection:', {
id: connection.id,
user: connection.user,
date: new Date(connection.date * 1000)
});
});Note: · This event fires when a bot is connected to a business account You'll receive the connection ID which you can use for sending messages through that connection. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to get information about a new bot business connection?
Beta Was this translation helpful? Give feedback.
All reactions