Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbilityBot: Could not retrieve originating user from update (ChatBoostUpdated) #1463

Open
ekomrak opened this issue Dec 5, 2024 · 0 comments
Labels
Abilities Bugs related to abilities module bug

Comments

@ekomrak
Copy link

ekomrak commented Dec 5, 2024

Ability Bot stopped working with the following exception (I added additional logging) during ChatBoostUpdated operations:

[23:09:55] ERROR: java.lang.IllegalStateException: Could not retrieve originating user from update: Update(updateId=123456789, message=null, inlineQuery=null, chosenInlineQuery=null, callbackQuery=null, editedMessage=null, channelPost=null, editedChannelPost=null, shippingQuery=null, preCheckoutQuery=null, poll=null, pollAnswer=null, myChatMember=null, chatMember=null, chatJoinRequest=null, messageReaction=null, messageReactionCount=null, chatBoost=ChatBoostUpdated(chat=Chat(id=-1111127333111, type=supergroup, title=Title, firstName=null, lastName=null, userName=Name1, isForum=null), boost=ChatBoost(boostId=ef6d16fd222b9d6df04486d40b607cd2, addDate=1733335794, expirationDate=1734183113, source=ChatBoostSourcePremium(source=premium, user=User(id=9999999999, firstName=Name, isBot=false, lastName=null, userName=Name22, languageCode=null, canJoinGroups=null, canReadAllGroupMessages=null, supportInlineQueries=null, isPremium=true, addedToAttachmentMenu=null, canConnectToBusiness=null, hasMainWebApp=null)))), removedChatBoost=null, businessConnection=null, businessMessage=null, editedBuinessMessage=null, deletedBusinessMessages=null, paidMediaPurchased=null)
	at org.telegram.telegrambots.abilitybots.api.util.AbilityUtils.getUserElseThrow(AbilityUtils.java:104)
	at org.telegram.telegrambots.abilitybots.api.util.AbilityUtils.getUser(AbilityUtils.java:61)
	at org.telegram.telegrambots.abilitybots.api.bot.BaseAbilityBot.checkBlacklist(BaseAbilityBot.java:476)

The same issue will be for the ChatBoostRemoved case.

Version: 7.x, 8.x

@rubenlagus rubenlagus added bug Abilities Bugs related to abilities module labels Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Abilities Bugs related to abilities module bug
Projects
None yet
Development

No branches or pull requests

2 participants