Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions pesachat-bot/pesachat_bot/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from __future__ import annotations


class PesaChatBot:
"""Telegram bot for cross-border remittance powered by the Stellar network.

Handles incoming Telegram updates, routes commands to the appropriate
handlers, and delegates all on-chain operations to *pesachat-core* via HTTP.

Args:
token: Telegram Bot API token issued by @BotFather.
core_url: Base URL of the running pesachat-core service
(e.g. ``http://localhost:8000``).
locale: BCP-47 language tag used for localised response strings.
Defaults to ``"en"``.
"""

def __init__(self, token: str, core_url: str, locale: str = "en") -> None:
self.token = token
self.core_url = core_url
self.locale = locale
Loading