Skip to content

fix: unscheduler private chat cancellation - #101

Merged
asmal95 merged 1 commit into
JavaZenTeam:masterfrom
mrMigles:codex/-ischatadmin-unschedulernotifyhandler
Jun 26, 2026
Merged

fix: unscheduler private chat cancellation#101
asmal95 merged 1 commit into
JavaZenTeam:masterfrom
mrMigles:codex/-ischatadmin-unschedulernotifyhandler

Conversation

@mrMigles

Copy link
Copy Markdown
Contributor

Fixed UnschedulerNotifyHandler so private/personal chats are treated as allowed to cancel without calling Telegram’s group-admin API; isChatAdmin now returns true for chat.isUserChat().

Added a regression test for personal chats verifying a user can cancel a replied scheduled task from another author and that GetChatAdministrators is not called.

Added a test helper that mocks Telegram Chat#isUserChat() as true for the personal-chat scenario.

Committed changes on the current branch: 60f8cc1 Fix unscheduler private chat cancellation.

Created a pull request: Fix unscheduler cancellation in private chats.

@asmal95
asmal95 merged commit 0b9e4f7 into JavaZenTeam:master Jun 26, 2026
1 check failed
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.

2 participants