clearCache method
void
clearCache()
Clears all cached values.
This method is useful if you need to force recomputation of cached properties. It's automatically called internally when needed, but can be called manually if you're doing something advanced with context modification.
Implementation
void clearCache() {
_cachedMsg = null;
_cachedFrom = null;
_cachedChat = null;
_cachedText = null;
_cachedCaption = null;
_cachedEntities = null;
_cachedCaptionEntities = null;
_cachedChatId = null;
_cachedHasCommand = null;
_cachedCommand = null;
_cachedArgs = null;
_cachedArgsString = null;
_cachedIsPrivateChat = null;
_cachedIsGroupChat = null;
_cachedIsChannelPost = null;
_msgCached = false;
_fromCached = false;
_chatCached = false;
_textCached = false;
_captionCached = false;
_entitiesCached = false;
_captionEntitiesCached = false;
_chatIdCached = false;
_hasCommandCached = false;
_commandCached = false;
_argsCached = false;
_argsStringCached = false;
_isPrivateChatCached = false;
_isGroupChatCached = false;
_isChannelPostCached = false;
}