Skip to content

Environmental Variables

Arnab Paryali edited this page Dec 3, 2021 · 3 revisions

API_ID (required)

API_HASH (required)

STRING_SESSION (required)

  • Type : string
  • Desc: GramJS/Telethon session string of the Telegram Account.

CONNECTION_RETRIES (optional)

  • Desc: GramJS maximum connection retries limit
  • Type: number
  • Default: 5

LOG_LEVEL: (optional)

  • Type: string
  • Desc: GramJS Log Level. Learn More
  • Options: none | debug | error
  • Default: none

CMD_PREFIX: (optional)

  • Type: string
  • Desc: Userbot command prefix. e.g: In command .help - . is the CMD_PREFIX
  • Default: .

DATABASE_URL: (required)

  • Type: string
  • Desc: Connection string of Postgres Database. You can get a free database from elephantsql.com, heroku.com.

LOG_CHAT_ID: (required)

  • Type: string
  • Desc: A Private Group/Channgel Id where LazyBot will log essential informations,errors.

PM_PERMIT_MODE: (optional)

  • Type: string
  • Desc: PM Permit is a feature to inbox spamming and Unwanted PMs. It replies to the sender to wait for your reply and automatically blocks the sender if he sends more messages than PM_PERMIT_MAX_WARNS.
  • Choices: text | media
  • Default: text

PM_PERMIT_MEDIA: (optional)

PM_PERMIT_MAX_WARNS: (optional)

  • Type: number
  • Desc: Maximum number of messages to tolerate in PMPermit
  • Default: 3