-
Notifications
You must be signed in to change notification settings - Fork 2k
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
StatesV2: Support for topics, multibots, and business messages #2321
Merged
coder2020official
merged 26 commits into
eternnoir:master
from
coder2020official:statesv2
Aug 11, 2024
Merged
Changes from 10 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
fce1c3d
Added statesv2
coder2020official 7e5a044
Sync states v2 early version
coder2020official 4a7bc5d
all update types are supported for states(theoretically)
coder2020official 90a8f32
Merge branch 'master' into statesv2
coder2020official 5e4598d
Merge branch 'eternnoir:master' into statesv2
coder2020official 676597c
added redis support(not fully tested)
coder2020official 5bd4271
Added redis dependency check
coder2020official a79fd77
fix test
coder2020official c29bf0e
Added pickle and renamed method
coder2020official 15bced9
Fixed bugs, renamed StateContext for retrieve_data to StateDataContex…
coder2020official ff6485d
Async version fully supported, partially tested.
coder2020official af79db6
rewrote pickle sync with lock decorators, few changes to storages to …
coder2020official 1adca13
Improved docstrings, fixed bugs, allow accessing statecontext via sta…
coder2020official adae7a9
Removed aioredis from optional dependencies, breaking change made for…
coder2020official d33db85
Updated examples
coder2020official 536ffa2
Added migrate_format to migrate from old format of states to new. Onl…
coder2020official d2485bf
Another approach to bot id
coder2020official dd0dfa9
fix tests
coder2020official 7f99176
fixed redis data bug on set_state
coder2020official 3fec98c
Code cleanup
coder2020official dbfa514
code cleanuop & renamed aio -> asyncio
coder2020official 2dbf190
Remove apihelper following the validate_token not using getMe
coder2020official b10e8d7
Reverted changes regarding self._user, fixed validate_token=False cau…
coder2020official 6108e35
fix docstring
coder2020official 30ebe75
make extract_bot_id return None in case validation fails
coder2020official d44ebce
Fix versions
coder2020official File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed that get_me should be optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, my bad, for sync there's no need for this as self.user is a property that already does this