diff --git a/__init__.py b/__init__.py index ed76dc7..bf5ee34 100644 --- a/__init__.py +++ b/__init__.py @@ -28,7 +28,7 @@ class GroupAnalyticsHandler: async def register(indexer, client: TelegramClient): - port: int = int(indexer.config['plugin_analytics']['port']) + port: int = int(indexer.config['plugin']['analytics']['port']) handler = GroupAnalyticsHandler(client) diff --git a/config.toml.example b/config.toml.example index 587a712..b0d491f 100644 --- a/config.toml.example +++ b/config.toml.example @@ -1,2 +1,4 @@ -[plugin_analytics] +[plugin] +[plugin.analytics] +enabled = true port = 9010