VerifyBot is a PowerShell-based tool designed to automate access management for corporate Telegram groups by syncing them with HR data. The system ensures that employees who have left the company are automatically removed from group chats, closing a common security gap.
The bot integrates with 1C:ZUP via the api query extension to verify employee status. It uses mobile or work phone numbers to confirm active employment. If a user is not found in the HR system, the bot denies access to the requested corporate groups.
The application utilizes PowerShell Runspaces for multi-threaded event processing, allowing the bot to handle multiple user requests, group updates, and API calls simultaneously without blocking. A two-tier architecture separates main event handlers from child task processors.
To manage Telegram API rate limits, the developer implemented a Token Bucket algorithm. The system allows for a global limit of 30 requests per second and a per-chat limit of one request per second, with automatic handling of 429 error codes.
Data persistence is handled by saving user states and group information into JSON files. The system uses System.Threading.Monitor to ensure thread safety when multiple Runspaces access the shared hash tables during data serialization.






