109110111112113114115116117118
// Encoder pipeline.addLast("stringEncoder", new StringEncoder(CharsetUtil.UTF_8)); // Handlers pipeline.addLast("botHandler", new ClientHandlerAdapter(Bot.this)); } }); bootstrap.option(ChannelOption.TCP_NODELAY, true); }