Skip to content

Commit 0fcaeea

Browse files
committed
Add back base_file_url
1 parent 4384d57 commit 0fcaeea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/telegram/telegram_bot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ def __init__(
4242
.concurrent_updates(True)
4343
)
4444
if TELEGRAM_BOT_API:
45-
builder = builder.base_url(f"{TELEGRAM_BOT_API}/bot").local_mode(True)
45+
builder = (
46+
builder.base_url(f"{TELEGRAM_BOT_API}/bot")
47+
.base_file_url(f"{TELEGRAM_BOT_API}/file/bot")
48+
.local_mode(True)
49+
)
4650
self.app = builder.build()
4751
self.sim = Simulacrum(context_filepath)
4852
self.cost_tracker = CostTracker()

0 commit comments

Comments
 (0)