Skip to content

Commit

Permalink
Make bot_token optional for TelegramTransportConfig (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
EniasCailliau authored Jul 28, 2023
1 parent a7fd0e4 commit 42c8dd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/steamship/agents/mixins/transports/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@


class TelegramTransportConfig(Config):
bot_token: str = Field(description="The secret token for your Telegram bot")
api_base: str = Field("https://api.telegram.org/bot", description="The root API for Telegram")
bot_token: Optional[str] = Field("", description="The secret token for your Telegram bot")
api_base: Optional[str] = Field(
"https://api.telegram.org/bot", description="The root API for Telegram"
)


class TelegramTransport(Transport):
Expand Down

0 comments on commit 42c8dd1

Please sign in to comment.