Introduction - there is a ready-made script that interacts with several bots and performs certain actions in them using Telegram accounts in the format session+json. Errors started to occur, the coder cannot fix them, and now another person is working on the corrections; the errors are attached for general understanding. It is necessary to either add to the existing script or write a new one with this task, also for each bot subsequently, but first for one:
The account should enter a specific bot via a referral link and perform several initial actions so that the referral is counted, but it is also necessary that I can insert, for example, 10 referral links and 100 Telegram accounts, and the script understands that it needs to divide the number of accounts by the number of referral links and that it should, in this case, make 10 referrals for each link, making 10 referrals for the first referral link, moving on to the next one, and most importantly - if any error occurs, no matter what, where the account did not enter via the referral link / did not work / did not connect, etc., the script should understand this and take the next account, continuing until it has made 10 referrals for the link, and only then move on to the next one, and so on until the accounts run out, but with the mandatory condition of completing a specific number of referrals for 1 link. And in the end, it should provide a report on how many were done, so that I can later understand where I need to finish up.
In the future, automation of actions in these same bots will be required (entered here, clicked there, and so on), I will write a detailed technical specification for each of them. I need a person who understands and has experience working with the Telegram API, specifically the Telegram API, NOT the Telegram API for developers. I want to emphasize that there was experience working with coders who wrote scripts, apparently using the API for developers, where accounts were banned almost all at once, so I need someone who will write specifically for the Telegram API, not for the developers' API, so that accounts are not banned and everything works correctly and within certain deadlines.