Skip to content

Commit 42c8dd1

Browse files
Make bot_token optional for TelegramTransportConfig (#505)
1 parent a7fd0e4 commit 42c8dd1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/steamship/agents/mixins/transports/telegram.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616

1717

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

2224

2325
class TelegramTransport(Transport):

0 commit comments

Comments
 (0)