Skip to content

refactor: return ApiError for invalid bot token#26

Merged
lewiszlw merged 3 commits into
masterfrom
fix-session-expired-error
May 6, 2026
Merged

refactor: return ApiError for invalid bot token#26
lewiszlw merged 3 commits into
masterfrom
fix-session-expired-error

Conversation

@lewiszlw
Copy link
Copy Markdown
Member

@lewiszlw lewiszlw commented May 6, 2026

Summary

  • remove SessionExpiredError and return ApiError for the errcode = -14 path
  • change the surfaced error message to Invalid bot token
  • keep is_session_expired covered by the session-expired regression test

Test Plan

  • cargo test

@lewiszlw lewiszlw merged commit 2236440 into master May 6, 2026
3 checks passed
@lewiszlw lewiszlw deleted the fix-session-expired-error branch May 6, 2026 06:01
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.

1 participant