toddrob99 / searcharr

Sonarr & Radarr & Readarr Telegram Bot
MIT License
247 stars 61 forks source link

[Info] - Whitelist and chat_id #88

Open Jorman opened 9 months ago

Jorman commented 9 months ago

Hi, thanks for this software, I was looking for just something like this. I am thinking of implementing an additional script for sharing the requested files, again via telegram, I know I have to respect some size limits and this is not a big problem. However, I have two questions about this, is there any way to know/record or otherwise keep track of the id of the user making the request? Is there a way to create a whitelist, to be updated manually or by request to the admin of the users who use it? Let me explain further, let's say I want to do a favor for a friend of mine and I pass him the data to access the bot and he uses it, but then he shares the information with a friend of his and so on, if there were some kind of white list, one could block access to those who are not authorized. The first question on the other hand is about the requestor's id, because I would like to send the file directly to the person who requested it, so I have the bot's id but to address the message I also need the person's id, at least that's what I seem to have seen, am I doing it wrong?

Jorman commented 8 months ago

Hi, small update, I was able to upload the files, however I would like to communicate with the user who made the request, would it be possible to also add the chat_id in the _tag_with_username tag? The final tag would then be searcharr-username-chat_id or searcharr-userid-chat_id Then I would have all the information to manage and communicate with users

What do you think?