From SmartBots Developers Docs
Jump to: navigation, search

Fires when bot receives a group invite

Bot.on("group_offer", function(event) { ... });


This event comes with the following event object:

Variable Required Description
event object properties:
name The name of the event in this case group_offer
avatar_name The name of the sender
group_name The name of the group
group_uuid The UUID of the group


Bot.on("group_offer", function(event) {
	console.log(event.avatar_name + " invited me to group: \n" + event.group_name);

console.log("Bot is listening, group invites");