public < T extends Serializable , Method extends BotApiMethod < T > , Callback extends SentCallback < T > > void executeAsync ( Method method , Callback callback ) throws TelegramApiException { if ( method == null ) { throw new TelegramApiException ( "Parameter method can not be null" ) ; } if ( callback == null ) { throw new TelegramApiException ( "Parameter callback can not be null" ) ; } sendApiMethodAsync ( method , callback ) ; }
General methods to execute BotApiMethods