Skip to content

OnPhoto handler

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

Basic usage

Triggers a photo and responds with the word "photo".

commands.OnPhoto("photo");

Triggers a photo and and sends randomly from the array word.

commands.OnPhoto("it`s photo", "nice photo!", "amazing photo!");

Extended

You can set your own trigger processing logic.

commands.OnPhoto(async (api, message, token) =>
{
    // your logic
});
Clone this wiki locally