Commit 5f5bf41
committed
telegram: lazy-init tool traces, add typing indicator, remove budget
Three changes to the Telegram integration:
1. Typing indicator (SendChatAction every 4s) replaces the
premature '🤔 Thinking...' message. Telegram shows the
native '...' status while the agent runs.
2. Tool trace message is now created lazily — only when the
first tool_call fires — not at conversation start.
3. Remove daily token budget enforcement. The bot package
retains the CheckDailyBudget API for programmatic use but
the Telegram integration no longer blocks users mid-
conversation after accumulated usage crosses the threshold.1 parent b3a5643 commit 5f5bf41
11 files changed
Lines changed: 3410 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
294 | 293 | | |
295 | 294 | | |
296 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
297 | 314 | | |
298 | 315 | | |
| 316 | + | |
| 317 | + | |
299 | 318 | | |
300 | 319 | | |
301 | 320 | | |
302 | 321 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | 322 | | |
309 | 323 | | |
310 | 324 | | |
| |||
331 | 345 | | |
332 | 346 | | |
333 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
334 | 357 | | |
335 | 358 | | |
336 | 359 | | |
| |||
343 | 366 | | |
344 | 367 | | |
345 | 368 | | |
346 | | - | |
347 | | - | |
348 | 369 | | |
349 | 370 | | |
350 | 371 | | |
| |||
386 | 407 | | |
387 | 408 | | |
388 | 409 | | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | 410 | | |
404 | 411 | | |
405 | 412 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
171 | 198 | | |
172 | 199 | | |
173 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
0 commit comments