onEvent abstract method

void onEvent(
  1. TelegramEvent event
)

A method that sets the app event handler. Check the list of available events.

All events mapped to events of TelegramEvent WARNING: call offEvent method to unregister callback

Implementation

void onEvent(TelegramEvent event);