TELEGRAM_TOKEN = "Your Telegram token" TELEGRAM_ID = "Your Telegram chat-id" TESTNET_API_KEY = "Your statistics server API key (if you are using the testnet)" MAINNET_API_KEY = "Your statistics server API key" TESTNET_URL = "Your statistics server testnet URL" MAINNET_URL = "Your statistics server URL" def get_credentials(site): if site=="telegram": return {"token": TELEGRAM_TOKEN, "chatid": TELEGRAM_ID } elif site=="testnet_api_key": return {"key": TESTNET_API_KEY} elif site=="mainnet_api_key": return {"key": MAINNET_API_KEY} return {} def get_url(site): if site=="testnet": return TESTNET_URL elif site=="mainnet": return MAINNET_URL return ""