Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyBot extends TelegramLongPollingBot {
- @Override
- public void onUpdateReceived(Update update) {
- // TODO
- }
- @Override
- public String getBotUsername() {
- // TODO
- return null;
- }
- @Override
- public String getBotToken() {
- // TODO
- return null;
- }
- }
- public class MyBot extends AbilityBot {
- protected MyBot(String botToken, String botUsername, DefaultBotOptions botOptions) {
- super(botToken, botUsername, botOptions);
- }
- public int creatorId() {
- return 0;
- }
- public Ability pingPong() {
- return Ability
- .builder()
- .name("ping")
- .info("ping pong")
- .locality(ALL)
- .privacy(PUBLIC)
- .action(ctx -> silent.send("pong", ctx.chatId()))
- .build();
- }
- }
- public void onUpdateReceived.
Add Comment
Please, Sign In to add comment