I only did this project as a fun afternoon task. You shouldn't depend on it in any circumstance. Always test before using it in real-life scenario.
- Create a API_ID and API_HASH here.
- Change configuration in
config.go'sdefaultConfig. - Run application in a foreign server (double check connectivity to telegram servers).
curl --location --request POST '{server_ip}:1455/get_code' \
--header 'api-key: secret' \
--header 'Content-Type: application/json' \
--data-raw '{
"phone": "+989123456789"
}'curl --location --request POST '{server_ip}:1455/verify_code' \
--header 'api-key: secret' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "90288",
"user_key": "[from previous API call]",
"password": ""
}'SAVE user_key in a safe place as it is the only piece of information required to delete your account :)
curl --location --request POST '{server_ip}:1455/delete' \
--header 'api-key: secret' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_key": "9ece5aeb-7bbf-4a86-af63-0c583c2a7d8d"
}'- DO NOT change or modify
datadirectory orDatabaseEncryptionKeyafter running the application. - Users' session data (which is used to connect and access Telegram) are stored in
datafolder. keep it safe. - Do not use a single instance (
api_idandapi_hash) more than 10 users.