telegram Bot
Creates SimpleMultiServerRequestsExecutor
Parameters
Bots which will be used to SimpleMultiServerRequestsExecutor.executes
It is strategy by which the bot is selected for the execution. This lambda will receive -1 when request execution just started and this call is first in context of one SimpleMultiServerRequestsExecutor.execute. By default, will select next TelegramBot when called (or first when current index is last or -1)
This method will be called inside of SimpleMultiServerRequestsExecutor.close method. By default, will close all bots
Parameters
Will be used to create result SimpleMultiServerRequestsExecutor.bots
Will be called with each item from keepers in process of bots creation
It is strategy by which the bot is selected for the execution. This lambda will receive -1 when request execution just started and this call is first in context of one SimpleMultiServerRequestsExecutor.execute. By default, will select next TelegramBot when called (or first when current index is last or -1)
This method will be called inside of SimpleMultiServerRequestsExecutor.close method. By default, will close all SimpleMultiServerRequestsExecutor.bots
Parameters
Will be used to create result SimpleMultiServerRequestsExecutor.bots
Will be called with each item from tokens in process of bots creation
It is strategy by which the bot is selected for the execution. This lambda will receive -1 when request execution just started and this call is first in context of one SimpleMultiServerRequestsExecutor.execute. By default, will select next TelegramBot when called (or first when current index is last or -1)
This method will be called inside of SimpleMultiServerRequestsExecutor.close method. By default, will close all SimpleMultiServerRequestsExecutor.bots
Parameters
Pairs with first parameter as a token and second parameter api url. Will be used to create result SimpleMultiServerRequestsExecutor.bots
Will be called with each item from tokens in process of bots creation
It is strategy by which the bot is selected for the execution. This lambda will receive -1 when request execution just started and this call is first in context of one SimpleMultiServerRequestsExecutor.execute. By default, will select next TelegramBot when called (or first when current index is last or -1)
This method will be called inside of SimpleMultiServerRequestsExecutor.close method. By default, will close all SimpleMultiServerRequestsExecutor.bots