


When a gbanned user talks, he will be banned. STRICT_GBAN: Enforce gbans across new groups as well as old groups. WHITELIST_USERS: A space separated list of user_ids which should be considered whitelisted - they can't be banned.ĭONATION_LINK: Optional: link where you would like to receive donations.ĬERT_PATH: Path to your webhook certificateĭEL_CMDS: Whether to delete commands from users which don't have rights to use that command SUPPORT_USERS: A space separated list of user_ids which should be considered support users (can gban/ungban, SUDO_USERS: A space separated list of user_ids which should be considered sudo users URL: The URL your webhook should connect to (only needed for webhook mode) WEBHOOK: Setting this to ANYTHING will enable webhooks when in env mode NO_LOAD: Space separated list of modules you would like NOT to load LOAD: Space separated list of modules you would like to load MESSAGE_DUMP: optional: a chat where your replied saved messages are stored, to stop people deleting their old OWNER_ID: An integer of consisting of your owner ID The following env variables are supported:ĮNV: Setting this to ANYTHING will enable env variables If you can't have a config.py file (EG on heroku), it is also possible to use environment variables. SUDO_USERS = # List of id's for users which have sudo access to the bot. MESSAGE_DUMP = '-1234567890' # some group chat that your bot is a member of SQLALCHEMY_DATABASE_URI = # sample db credentials OWNER_USERNAME = "itz_devil_op" # my telegram usernameĪPI_KEY = "your bot api key" # my api key, as provided by the botfather
