Hi,
I understand that you need your code to be slightly modified. I can validate the input message and fix the application layout for the output. This can be completed in about an hour and can start work right away.
I've developed many desktop applications using Python including windows software for automatically adding bulk users to telegram groups/supergroups/channels by interacting with telegram api.
Kindly message me so that we can clarify the requirements over chat.
Best regards,
Nabhan.