Skip to content

feat: add real message sending, rename draft tool, fix auth proxy#27

Open
aogoro wants to merge 1 commit into
chaindead:mainfrom
aogoro:task/upstream-send-feature
Open

feat: add real message sending, rename draft tool, fix auth proxy#27
aogoro wants to merge 1 commit into
chaindead:mainfrom
aogoro:task/upstream-send-feature

Conversation

@aogoro

@aogoro aogoro commented May 23, 2026

Copy link
Copy Markdown

Adds real message sending capability and improves proxy support.

Changes

  • tg_send tool: Send actual messages via messages.sendMessage with crypto/rand RandomID and reply_to support
  • tg_draft tool: Renamed from the old tg_sendSaveDraft functionality preserved as a separate, clearly named tool
  • Proxy support in auth: Use OptionsFromEnvironment so proxy settings (e.g. HTTPS_PROXY) are picked up during authentication

Motivation

The original tg_send only saved drafts, which was confusing. This PR:

  1. Adds actual message sending (the most requested capability for AI assistant integrations)
  2. Renames the draft-only tool to tg_draft for clarity
  3. Fixes auth to respect proxy environment variables

Testing

  • go build ./... passes
  • Tested with Claude Code MCP client: sending messages, replying, saving drafts all work correctly

…draft

- Add tg_send tool with messages.sendMessage (crypto/rand RandomID, reply_to support)
- Rename old tg_send to tg_draft (SaveDraft preserved as separate tool)
- Fix auth.go to use OptionsFromEnvironment for proxy support
@chaindead

chaindead commented May 25, 2026

Copy link
Copy Markdown
Owner

Hi, thx for contributing

but plz check #26 PR (i described there approch to adding tg_send functionality)

  • draft tool should be availible
  • send tool availible if flag unrestricted provided by user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants