mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-26 06:01:49 +00:00
feat(gateway): add Telegram guest mention mode
This commit is contained in:
parent
369cee018d
commit
55f518e521
6 changed files with 168 additions and 25 deletions
|
|
@ -23,10 +23,10 @@ from gateway.config import Platform, PlatformConfig
|
|||
# Telegram
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
def _make_telegram_adapter(*, allowed_chats=None, require_mention=None):
|
||||
def _make_telegram_adapter(*, allowed_chats=None, require_mention=None, guest_mode=False):
|
||||
from gateway.platforms.telegram import TelegramAdapter
|
||||
|
||||
extra = {}
|
||||
extra = {"guest_mode": guest_mode}
|
||||
if allowed_chats is not None:
|
||||
extra["allowed_chats"] = allowed_chats
|
||||
if require_mention is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue