How to pin message using AbilityBot in TelegramBots library (Java)?

I searched in google and docs of library, but nothing found.

official TelegramBots library docs

I need some like this:

public Ability sayHelloWorld() {
    return Ability
              .info("says hello world!")
              .action(ctx -> {
                       Message msg = silent.send("Hello world!", ctx.chatId()).get();
                       // example of method which i can't find
             , msg.getMessageId())


I found how do this:


For unpin message use UnpinChatMessage.

Source: stackoverflow