Skip to content

Add tests & slight refactor to TelegramTransport key handling#528

Merged
eob merged 8 commits intomainfrom
telegram-token
Aug 25, 2023
Merged

Add tests & slight refactor to TelegramTransport key handling#528
eob merged 8 commits intomainfrom
telegram-token

Conversation

@eob
Copy link
Copy Markdown
Contributor

@eob eob commented Aug 23, 2023

This PR:

  1. Adds a few additional tests to TelegramTransport
  2. Improves TelegramTransport's handling of dynamically set keys (it already had this; this PR makes it a bit more robust)

This will enable a few nice things form a user perspective:

  1. Users can re-bind an Agent via the Web UI to a new Telegram Bot
  2. Users can defer binding their Agent to a Telegram Bot until after they've created an instance

Follow-on work is a PR to do for Telegram what we just did for Slack in the web UI:

image

@eob eob changed the title [WIP] Slightly refactor TelegramTransport to enable smoother web ui management Add tests & slight refactor to TelegramTransport key handling Aug 24, 2023
@eob eob requested a review from dkolas August 24, 2023 21:44
dkolas
dkolas previously approved these changes Aug 25, 2023
Copy link
Copy Markdown
Contributor

@dkolas dkolas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; I think this will help users be able to fix their existing bots without creating 1000 instances.

Minor request for a rename if you're up for it.

Comment thread src/steamship/agents/examples/telegram_bot.py Outdated
Comment thread src/steamship/agents/mixins/transports/slack.py
Comment thread src/steamship/agents/mixins/transports/telegram.py
Comment thread tests/assets/packages/demo_package.py
@eob eob merged commit 05a8f0e into main Aug 25, 2023
@eob eob deleted the telegram-token branch August 25, 2023 19:37
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