Skip to content

Instantly share code, notes, and snippets.

@KaratekHD
Created April 24, 2021 10:12
Show Gist options
  • Save KaratekHD/ccba2ee73748c641917a1743bd8acf66 to your computer and use it in GitHub Desktop.
Save KaratekHD/ccba2ee73748c641917a1743bd8acf66 to your computer and use it in GitHub Desktop.
OpenGM example Config
from tg_bot.sample_config import Config
class Development(Config):
OWNER_ID = 540549815 # replace this with your telegram ID
OWNER_USERNAME = "Karatek_HD" # replace this with your username
API_KEY = "" # your api key, as provided by the botfather
SQLALCHEMY_DATABASE_URI = 'postgresql://username:password@localhost:5432/database' # sample db credentials
SUDO_USERS = [] # List of id's for users which have sudo access to the bot.
LOAD = []
SUPPORT_USERS = []
NO_LOAD = ['rest']
ALLOW_EXCL = True # Allow ! commands as well as /
CO_OWNER_ID = "000000000" # a persons ID. If you do not want to have a co-owner, set it to 0
DEFAULT_LANG = "en"
DEBUG = False
WORKERS = 8
WHITELIST_USERS = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment