feat: rename telegram client module
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ The orchestrator module containing:
|
|||||||
queue per bot token; updates are confirmed when a client requests a higher `offset`, so
|
queue per bot token; updates are confirmed when a client requests a higher `offset`, so
|
||||||
multiple instances with the same token will race (duplicates and/or missed updates)
|
multiple instances with the same token will race (duplicates and/or missed updates)
|
||||||
|
|
||||||
### `telegram_client.py` — Telegram Bot API
|
### `telegram.py` — Telegram Bot API
|
||||||
|
|
||||||
Minimal async client wrapping the Bot API:
|
Minimal async client wrapping the Bot API:
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Takopi
|
# takopi
|
||||||
|
|
||||||
> 🐙 A little helper from Happy Planet, here to make your Codex sessions happier-pi!
|
> 🐙 A little helper from Happy Planet, here to make your Codex sessions happier-pi!
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ Create a Codex profile in `~/.codex/config.toml`:
|
|||||||
model = "gpt-4.1"
|
model = "gpt-4.1"
|
||||||
```
|
```
|
||||||
|
|
||||||
Then run Takopi with:
|
Then run takopi with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
uv run takopi --profile takopi
|
uv run takopi --profile takopi
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
"""Takopi — Telegram Codex bridge package."""
|
"""takopi — Telegram Codex bridge package."""
|
||||||
|
|
||||||
__version__ = "0.1.0"
|
__version__ = "0.1.0"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ from .config import ConfigError, load_telegram_config
|
|||||||
from .exec_render import ExecProgressRenderer, render_event_cli, render_markdown
|
from .exec_render import ExecProgressRenderer, render_event_cli, render_markdown
|
||||||
from .logging import setup_logging
|
from .logging import setup_logging
|
||||||
from .onboarding import check_setup, render_setup_guide
|
from .onboarding import check_setup, render_setup_guide
|
||||||
from .telegram_client import TelegramClient
|
from .telegram import TelegramClient
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
UUID_PATTERN_TEXT = r"\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b"
|
UUID_PATTERN_TEXT = r"\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b"
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ def render_setup_guide(result: SetupResult) -> None:
|
|||||||
|
|
||||||
panel = Panel(
|
panel = Panel(
|
||||||
"\n".join(parts).rstrip(),
|
"\n".join(parts).rstrip(),
|
||||||
title="[bold]Welcome to Takopi![/]",
|
title="[bold]Welcome to takopi![/]",
|
||||||
subtitle=f"{_OCTOPUS} setup required",
|
subtitle=f"{_OCTOPUS} setup required",
|
||||||
border_style="yellow",
|
border_style="yellow",
|
||||||
padding=(1, 2),
|
padding=(1, 2),
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import httpx
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from takopi.logging import RedactTokenFilter
|
from takopi.logging import RedactTokenFilter
|
||||||
from takopi.telegram_client import TelegramClient
|
from takopi.telegram import TelegramClient
|
||||||
|
|
||||||
|
|
||||||
def test_telegram_429_retry_after_calls_sleep() -> None:
|
def test_telegram_429_retry_after_calls_sleep() -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user