emit method

void emit(
  1. String type_update,
  2. UpdateBot updateBot
)

call latest Bot Api example: sendMessage

tg.emit(tg.event_update, "");

add this for handle update api

Implementation

void emit(String type_update, UpdateBot updateBot) {
  return event_emitter.emit(type_update, null, updateBot);
}