-
-
Notifications
You must be signed in to change notification settings - Fork 16
Added custom http client, update webhook, new download methods #167
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
Open
m-xim
wants to merge
113
commits into
K1rL3s:master
Choose a base branch
from
m-xim:webhook3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 26 commits
Commits
Show all changes
113 commits
Select commit
Hold shift + click to select a range
616c602
feat(webhook): update web
m-xim e3d851a
feat(webhook): update route
m-xim 79eb09a
feat(webhook): update security
m-xim e7551bc
feat(webhook): add TaskTracker
m-xim 42f684e
test(webhook): update web, route, security
m-xim be3981e
feat: add custum transport in bot, api_client
m-xim 7c81793
feat: add middlewares for api_client
m-xim e0ad33b
test: update test for custom transport
m-xim 71a4289
refactor(api_client): pass validate in AddMembers
m-xim 813dd2d
test(webhook): add fixtures
m-xim 170f2c5
Merge branch 'K1rL3s:master' into webhook3
m-xim 464802a
feat(deps): add multidict for webhook
m-xim f38e0e0
feat: update resumable_upload
m-xim 0850b87
test: update resumable_upload
m-xim 6fc82fb
refactor(bot): lazy Bot start
m-xim 507e31d
feat(webhook): drop Target abstraction, add base and single engines
m-xim d7828b6
feat(webhook): add errors
m-xim 18e2c65
test(webhook): add new tests, drop target
m-xim 3d49ef8
feat(webhook): add WebhookConfig
m-xim 212239a
feat(api_client): add default request_dumper/response_loader in defau…
m-xim 4347970
test(state): remove bot.state
m-xim e321a5a
test(state): remove bot.state
m-xim 0a0805d
fix(state): remove bot.state
m-xim 22c3873
fix: clening
m-xim 07f2e5e
docs: bot.state.info to bot.state
m-xim 49dceb9
fix(bot): use api_client.transport in get_my_info
m-xim 666834b
Merge branch 'master' into webhook3
m-xim ebd9381
fix(bot): shared retort, drop MaxApiClient
m-xim 82f2c92
refactor: BotMixin
m-xim bedebbe
test: shared retort, drop MaxApiClient
m-xim e7bb9d0
test: add tests for binding
m-xim 770d36e
docs: update text about BotMixin and warm
m-xim 213eafc
fix: remove `noqa: S105`
m-xim 5f280d7
fix: cleaning
m-xim aee5390
fix: tests, mypy
m-xim 64dcc7b
feat: update webhook examples
m-xim 0003f19
fix: remove unused Body marker from WebhookConfig.update_types
m-xim d0f4a2f
feat: add MaxoStreamMethod for streamed methods
m-xim e5aba38
refactor(bot): start
m-xim 6a7f71f
feat: add response.data in error logs
m-xim 361f2d9
feat: bump unihttp
m-xim 31c62a9
refactor(bot): add ChunkUploadRetryMiddleware for resumable uploads
m-xim f30af3c
refactor(bot): simplify context and remove start method
m-xim 3653561
test(bot): fixed
m-xim f7f7476
fix(transport): remove start from long_polling
m-xim 40a931f
refactor(single): remove redundant bot.start calls and handle StateError
m-xim 5b7a93f
feat(webhook): add TokenEngine for multi-bot webhook handling
m-xim 3909f9d
feat: update optional dependencies for webhook support
m-xim f9acd78
fix: optional dependencies for webhook support
m-xim 637a579
feat(binding): enhance type introspection and add cycle detection for…
m-xim d03b905
refactor(binding): simplify type hints retrieval by removing unnecess…
m-xim 7d892a5
refactor(binding): improve reading
m-xim dfa6351
Merge branch 'K1rL3s:master' into webhook3
m-xim b96e922
feat: add usage instruction for running webhook_fastapi example
m-xim 30e1746
refactor(binding): update mixin imports and restructure bot binding l…
m-xim ba8f949
refactor(base): reorganize MaxoStreamMethod
m-xim b9e0196
refactor(dialogs): simplify bot assignment in cleaned_event processing
m-xim 2cc038e
docs(errors): update error handlers to use Bot instance directly
m-xim a54694e
docs(dacades): fix import path for MediaInput
m-xim b90a534
refactor(download): update import path for Path marker
m-xim cc02fc0
refactor(bot): rename middleware to middlewares
m-xim 9133e73
fix(bot): update get_my_info return type
m-xim 63daf96
refactor(upload): implement resumable file upload with chunk handling
m-xim c36f6dd
refactor(bot): remove unused upload media test for resumable uploads
m-xim b9d544b
refactor(warming_up): rename DUMPED_ROOTS and LOADED_ROOTS for consis…
m-xim 7f7a89b
refactor(warming_up): streamline retort handling
m-xim a804af2
refactor(bot): rename transport to client
m-xim 01ec683
refactor(constants): add comment to test token for clarity
m-xim 5d4f23e
refactor(tests): cleaning bot test
m-xim cc51553
fix(bot): update type hint for get_my_info and correct middleware key
m-xim 9b9146a
Merge remote-tracking branch 'upstream/master' into webhook3
m-xim b4f4f60
refactor: simplify retort initialization and update WebhookConfig class
m-xim 6258e99
refactor: replace create_retort with get_retort and update method ref…
m-xim 22a845b
refactor: rename webhook_fastapi to fastapi in pyproject.toml
m-xim 7fb2b56
refactor(Bot): remove unused async context manager methods from bot.py
m-xim 52f4a0d
refactor(Security): rename SecretToken to BaseSecret and update relat…
m-xim a57ca80
refactor(Token): improve bot removal logic with try-finally structure
m-xim 3b869b4
refactor(Bot): adjust middleware order in call_method for better erro…
m-xim b2e7e61
refactor(BotConfig): change BotConfig to inherit from MaxoType
m-xim 6ed9f51
refactor(TokenEngine): enhance bot subscription logic
m-xim 8a3b13c
chore(webhook): remove dead config/
m-xim 5d57e91
refactor(facades): update deprecation warnings and reorganize imports
m-xim c946af1
fix(mypy): remove unnecessary type ignore comment
m-xim 6f7a845
refactor(binding): simplify hint flattening logic in _field_classes
m-xim 7d927da
fix(web_preview): for microsoft windows
m-xim c405bcb
feat(webhook): add debug logging for new updates
m-xim 148d341
fix(webhook): add warning for unprotected webhook registration
m-xim 7e92b5f
refactor(webhook): update webhook engine and adapter usage in documen…
m-xim d58764a
feat(webhook): expose Route in module exports
m-xim 528b51b
fix(webhook): update warning message for unprotected webhook registra…
m-xim 0e91a90
refactor(webhook): reorganize imports and update documentation for ad…
m-xim c8194e3
refactor(bot): remove silent_call_method and related tests
m-xim eb67e9f
feat(download): implement download methods for attachments with strea…
m-xim 7bef115
refactor(message_callback): reorganize import statements for clarity
m-xim 592b89b
refactor(imports): consolidate import statements in __init__.py and m…
m-xim 9f89f5f
feat(single): improve logging during shutdown with masked bot token
m-xim af8a3d3
refactor(multi): encapsulate bot registration and unregistration logic
m-xim 34935f6
fix(single): ensure bot info is retrieved if not started before webho…
m-xim b9be27e
test(single): add subscription test for SingleBotEngine with bot ID r…
m-xim 16db813
docs(agents): update AGENTS.md to include Download method in the list
m-xim 5033a2a
style(single): clean up comments and formatting in single.py and test…
m-xim ae3e107
fix(base): ensure requests are accepted only when bot is active
m-xim e91d9bf
fix(token): add locking mechanism for concurrent bot management and i…
m-xim 4c3d07f
test: implement SubscribingClient and BlockingJsonWebRequest for enha…
m-xim da5a75f
chore: merge master into webhook3
K1rL3s 154c12f
Исправил дамп даты-время в таймстамп в квери
K1rL3s 5109ac8
Переделал `make_comment` и `make_bot` в тесте комментов на фикстуры
K1rL3s f0a6a74
Merge pull request #2 from K1rL3s/mxim-webhook
m-xim 60f7d65
refactor(init): remove imports
m-xim 6f86d77
refactor(init): expose BaseMiddleware in the public API
m-xim fa3e7ed
Merge remote-tracking branch 'origin/master' into webhook3
m-xim e07fca2
Подсократил тесты кукодексом
K1rL3s 43667ee
Merge pull request #4 from K1rL3s/mxim-webhook
m-xim 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 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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.