From 986a506ce3ccd8d5bdb10d65d8025ad6bff58070 Mon Sep 17 00:00:00 2001 From: Luca Bellanti Date: Sun, 18 Feb 2024 16:22:50 +0100 Subject: [PATCH] Changes in the mermaid graph: moved baseRateLimiter to the right --- Architecture.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/Architecture.md b/Architecture.md index 52971a7..6ba11ff 100644 --- a/Architecture.md +++ b/Architecture.md @@ -24,11 +24,7 @@ flowchart TD; specifies if and how it handles updates "); - BaseRateLimiter(" - ext.BaseRateLimiter - interface for rate limiting - API requests - "); + BaseRequest(" request.BaseRequest interface for handling the @@ -56,6 +52,17 @@ flowchart TD; Convenience class for unified access to different objects within handler/job/error callbacks + "); + BaseRateLimiter(" + ext.BaseRateLimiter + interface for rate limiting + API requests + "); + Defaults(" + ext.Defaults + gathers default values for frequently + used parameters of (ext.Ext)Bot, + Ext.JobQueue and ext.BaseHandler "); CallbackDataCache(" ext.CallbackDataCache @@ -67,12 +74,7 @@ flowchart TD; specifies types of the context argument "); - Defaults(" - ext.Defaults - gathers default values for frequently - used parameters of (ext.Ext)Bot, - Ext.JobQueue and ext.BaseHandler - "); + JobQueue(" ext.JobQueue schedules tasks to run @@ -98,11 +100,11 @@ flowchart TD; BasePersistence -- holds a reference --> Bot; BaseRateLimiter -- rate limits requests
to the API --> BaseRequest; Bot -- dispatches requests
to the API --> BaseRateLimiter; + Bot -- stores arbitrary
callback_data --> CallbackDataCache; Bot -- gets default values
for parameters --> Defaults; - Bot -- stores arbitrary
callback_data --> CallbackDataCache; JobQueue -- accesses to
build context --> ContextTypes; Updater -- calls get_updates
& set/delete_webhook --> Bot; - + ``` ---