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 :-)
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 :-)