Skip to content

1. Configuring

Roj edited this page Aug 9, 2022 · 2 revisions

To get your Xor configured, you need to have the following:

App Credentials

  1. Login to my.telegram.org/apps.
  2. Create your app.
  3. Save your app’s ID and hash.

Your app credentials should be put into the variables APP_ID and APP_HASH respectively.

Account String Session

Here are several ways to get a string session for your account:

  1. xorgram/session
  2. repl.it
  3. ssg.roj.im
  4. npx tgsession

The generated string session should be put into the variable STRING_SESSION.

Database Credentials

Note: You don’t need to care about this if you are running Xor from Heroku.

If you run Xor from a place where the storage is not permanent, we recommend using a database. Xor currently supports MongoDB, PostgreSQL and Redis.

You can get a free cloud database from various providers. Here are some:

After you have your database connection URI, put it into the variable PLS_CONNECTION_URI.

Clone this wiki locally