allowMessagesFromGroup abstract method

Future<VKWebAppBoolResult> allowMessagesFromGroup({
  1. required int groupId,
  2. String? key,
})

VKWebAppAllowMessagesFromGroup allows you to request permission from the user to send messages on behalf of the community.

Platforms: iOS, Android, Web, Mobile Web

groupId - group ID. key - arbitrary string. This parameter can be used to authenticate the user. Its value will be returned in the message_allow event of the Callback API.

Implementation

Future<VKWebAppBoolResult> allowMessagesFromGroup({
  required int groupId,
  String? key,
});