ars3niy / tdlib-purple

libpurple Telegram plugin using tdlib
Other
147 stars 32 forks source link

Feature request: Read API Keys from config file #140

Closed c0dev0id closed 2 years ago

c0dev0id commented 2 years ago

Hello,

Passing API keys at compile time works for people that actually compile the code. I would like to package tdlib-purple for OpenBSD. I can create an application and add my keys to the package, but in the nature of Open Source, the API key would be visible and can be used for evil. It's also prohibit by the telegram TOS to give it to third parties.

Therefore I'd like to request a way to pass API_ID and API_HASH at runtime. I think a simple config file in the user home directory would work. This would also free you from the burden to man up and provide you own keys :-)

zer0def commented 2 years ago

Wouldn't #129 address this, so that you could specify these on purple account creation?

c0dev0id commented 2 years ago

That's even better.