31 lines
908 B
Plaintext
31 lines
908 B
Plaintext
# Telegram API credentials (get from https://my.telegram.org)
|
|
TG_API_ID=123456
|
|
TG_API_HASH=your_api_hash_here
|
|
|
|
# Telethon session file name (will create files with this prefix)
|
|
TG_SESSION=telethon_session
|
|
|
|
# Target user — choose ONE of these (leave the other blank/zero)
|
|
# If they have a public username, set it WITHOUT the leading @
|
|
TARGET_USERNAME=
|
|
# If no username, use their numeric Telegram user ID
|
|
TARGET_USER_ID=0
|
|
|
|
# OpenAI configuration
|
|
OPENAI_API_KEY=your_openai_api_key_here
|
|
# Any chat-capable model you prefer
|
|
OPENAI_MODEL=gpt-4o-mini
|
|
|
|
# Human-like delay between replies (seconds)
|
|
MIN_DELAY_SEC=25
|
|
MAX_DELAY_SEC=75
|
|
|
|
# History persistence
|
|
HISTORY_FILE=chat_history.jsonl
|
|
# Rough token budget for history passed to the model
|
|
MAX_TOKENS_HISTORY=2200
|
|
# Hard cap on number of messages kept in history
|
|
MAX_MESSAGES_HISTORY=30
|
|
|
|
# Optional: ensure unbuffered logs in some environments
|
|
PYTHONUNBUFFERED=1 |