feat(update): add UpdateType enum for unified update type resolution#1577
Open
makariyp wants to merge 4 commits intorubenlagus:devfrom
Open
feat(update): add UpdateType enum for unified update type resolution#1577makariyp wants to merge 4 commits intorubenlagus:devfrom
makariyp wants to merge 4 commits intorubenlagus:devfrom
Conversation
# Conflicts: # pom.xml # telegrambots-abilities/pom.xml # telegrambots-client-jetty-adapter/pom.xml # telegrambots-client/pom.xml # telegrambots-extensions/README.md # telegrambots-extensions/pom.xml # telegrambots-longpolling/pom.xml # telegrambots-meta/pom.xml # telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/methods/SetMyProfilePhoto.java # telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/message/Message.java # telegrambots-springboot-longpolling-starter/pom.xml # telegrambots-springboot-webhook-starter/pom.xml # telegrambots-test-reports/pom.xml # telegrambots-webhook/pom.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add UpdateType enum to provide a standardized way to determine the type
of an incoming Telegram update without writing boilerplate if-else chains
in application code.
Each enum constant holds a reference to the corresponding getter of the
Update object, allowing type detection via UpdateType.from(update).
This makes it easy to identify which handler should process a given update
and enables clean switch-based dispatch logic on the caller side.