Skip to content

OnChatAction handlers

Arius Bronte edited this page Feb 24, 2020 · 1 revision

Basic usage

The method name is equal to the chat action.

commands.OnChatInviteUserAction(async (api, update, token) => { });
commands.OnChatKickUserAction(async (api, update, token) => { });
commands.OnChatPhotoRemoveAction(async (api, update, token) => { });
commands.OnChatPhotoUpdateAction(async (api, update, token) => { });
commands.OnChatPinMessageAction(async (api, update, token) => { });
commands.OnChatTitleUpdateAction(async (api, update, token) => { });
commands.OnChatUnpinMessageAction(async (api, update, token) => { });
commands.OnChatInviteUserByLinkAction(async (api, update, token) => { });

Combined methods

  • OnChatInviteUser - invited and returned to the conversation.
  • OnChatKickUser - kick out and leave the conversation.
Clone this wiki locally