> For the complete documentation index, see [llms.txt](https://crowgram.gitbook.io/crowgram/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://crowgram.gitbook.io/crowgram/variables/config-vars.md).

# Config Vars

{% hint style="info" %}
**Recommend:** We request that you fork Crowgram's GitHub repository so your deployed version will be protected.
{% endhint %}

## Crowgram Variables

The variables mentioned below are required to deploy Crowgram. There are some required variables that must be given mandatory values; otherwise, Crowgram will not be able to run.

```markdown
api_id
api_hash
string
bot_token
assistant_bot
assistant_api_id
assistant_api_hash
assistant_string
owner
log_group
pm_log_location
mention_log_location
```

It is important to have knowledge about each variable; it will be convenient to run and use Crowgram. Trying to give general knowledge about each variable.

#### <mark style="color:green;">api\_id</mark> <mark style="color:orange;">and</mark> <mark style="color:green;">api\_hash</mark> (<mark style="color:red;">required</mark>)

The api\_id and api\_hash are those of the developer. But since you deploy Crowgram yourself, it is your api\_id and api\_hash that you must provide.

{% hint style="danger" %}
Collect this value from my.telegram.org and do not share it with anyone.
{% endhint %}

#### <mark style="color:green;">string</mark> (<mark style="color:red;">required</mark>)

Strings are a convenient way to embed your login credentials directly into Crowgram code for easy portability, since all it takes is a string to be able to login without asking for your phone or code.

{% hint style="danger" %}
Collect this value by running python3 string\_session.py, and never accidentally share it with anyone.
{% endhint %}

#### <mark style="color:green;">bot\_token</mark> (<mark style="color:red;">required</mark>)

A token is a string or line containing letters and numbers needed to authorize the bot and send requests to the bot API. Crowgram's Help plugin works through this bot token.

{% hint style="danger" %}
Collect the assistant bot's token from @BotFather and don't accidentally share it with anyone.
{% endhint %}

#### <mark style="color:green;">assistant\_bot</mark> (<mark style="color:red;">required</mark>)

In Assistant Bot, you need to give your assistant bot username, with **@** of course. This is how Crowgram's Help plugin works.

#### <mark style="color:green;">assistant\_api\_id</mark> <mark style="color:orange;">and</mark> <mark style="color:green;">assistant\_api\_hash</mark> (<mark style="color:red;">required</mark>)

You have to provide the api\_id and api\_hash of your Assistant account. The api\_id and api\_hash are those of the developer. But since you deploy Crowgram yourself, it is your api\_id and api\_hash that you must provide.

{% hint style="danger" %}
Collect this value from my.telegram.org and do not share it with anyone.
{% endhint %}

#### <mark style="color:green;">assistant\_string</mark> (<mark style="color:red;">required</mark>)

Here, you have to provide the session string of your assistant account. Strings are a convenient way to embed your login credentials directly into Crowgram code for easy portability, since all it takes is a string to be able to login without asking for your phone or code.

{% hint style="danger" %}
Collect this value by running python3 string\_session.py, and never accidentally share it with anyone.
{% endhint %}

#### <mark style="color:green;">owner</mark> (<mark style="color:red;">required</mark>)

Here you have to give the user ID of your Telegram account; through this, the owner account is known on Crowgram, and the owner account is given special privileges and protected from other people's requests.

#### <mark style="color:green;">log\_group</mark> (<mark style="color:red;">required</mark>)

Here you have to give the group ID of your Crowgram logs group. It is very important; if Crowgram runs successfully, this log group will be notified with a message.

#### <mark style="color:green;">pm\_log\_location</mark> <mark style="color:orange;">and</mark> <mark style="color:green;">mention\_log\_location</mark> (<mark style="color:orange;">optional</mark>)

Here your messages will be logged; if you want, you can put your PM or Mention Logs in the same group; here you have to give the group ID of your message log; if you don't give it, it is not mandatory; if you don't give values to these variables, the message logger will not work.
