🔧Config Vars

Recommend: We request that you fork Crowgram's GitHub repository so your deployed version will be protected.

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.

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.

api_id and api_hash (required)

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.

Collect this value from my.telegram.org and do not share it with anyone.

string (required)

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.

Collect this value by running python3 string_session.py, and never accidentally share it with anyone.

bot_token (required)

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.

Collect the assistant bot's token from @BotFather and don't accidentally share it with anyone.

assistant_bot (required)

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

assistant_api_id and assistant_api_hash (required)

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.

Collect this value from my.telegram.org and do not share it with anyone.

assistant_string (required)

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.

Collect this value by running python3 string_session.py, and never accidentally share it with anyone.

owner (required)

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.

log_group (required)

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.

pm_log_location and mention_log_location (optional)

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.

Last updated