Comments (9)
I think, need a database if this needs to be implemented.
No, it’s not needed, you can use some algorithms
from filesbot.
If I have bot username, I will generate all links like
https://t.me/FilesBot?start=view_12_tg
https://t.me/FilesBot?start=view_109_tg
and see the files users forwarded to bot
but this way, Random users can only access Files, if they have exact word in link
from filesbot.
@SpEcHiDe time to use uuid :-)
from filesbot.
Uhm, it makes sense
from filesbot.
I think, need a database if this needs to be implemented.
from filesbot.
Wait, it’s not possibile with an algorithm without using a db. Sorry I was wrong.
I’m thinking about it, let’s see if I find something
from filesbot.
it is not impossible, ideally you can use any algorithm which supports 2 way hashing (and returns a hash less than 64 characters), but I think not using a DB is over-engineering the problem..😅
from filesbot.
Yeah but:
- 2 way hashing is useless: everyone can access any file
- In order to use DB on heroku you have to use Heroku’s own DB, and this prevent the bot to be hosted in other places
Also, if we’ll use a 2 way hashing, I’d like to use my own base26 encoding, that encodes every int in a string composed by only a-z lowercase letters
from filesbot.
- I think we can override DATABASE_URL but I am not sure about it.
from filesbot.
Related Issues (13)
- Bot Isn't Starting Up HOT 1
- Can You Expain How ToMake bot Clearly bro HOT 1
- Error HOT 1
- Not Working
- acess denied showing in files bot after deploy
- TG_AUTH_USERS not working
- Force subscribe HOT 1
- What This bot do
- Create Dockerfile
- Bot Isn't Hiding Sender/Forwarder Profile/Channel HOT 1
- Require to be member of A channel
- Need stack heroku-20 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filesbot.