I'm a bit new to Google App Script and I can't find how to do it. I am creating a Google Chat bot using Google App Script and I want to get the profile picture of the user who messaged the bot, preferably the link instead of the image itself since I will be passing the image to a website.
Edit: I do know that Google has an API to get the user photo like this, if I'm an admin - which I'm not - or like this but I don't know how to use it in App Script or if it's even possible to do so. From what I understand I need to have the user's ID which I have no idea how to get. I have also looked at this question however the links that could be helpful for me doesn't work anymore. If it helps I also know their email address, I just need to get the account ID from there. I don't mind using other APIs that require OAuth to do this. If it helps I also know their email address, I just need to get the account ID from there.