Telegram Change Dinamic ID

Hi everyone
I would like to implement the following possibility in my configuration with Telegram

I would like non-resident external users to have access to home automation control to, for example, open the gate etc…

To do this I was thinking of doing an automatic authentication sequence in the Telegram bot so:

  • external user sends message to bot
  • admin user receives it
  • admin user approves his id in the home assistant integration

for now almost everything works… I’m testing in blocks of code… what doesn’t work is the dynamic insertion of telegram chat ids… apparently I can’t and there’s no possibility… can you confirm this problem for me?
Furthermore, I can only find the IDs that are not enabled in the home assistant log and therefore I have to perform a function that automatically sends me the ID that is trying to access

thank you all