We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8e1824 commit 8aeb99fCopy full SHA for 8aeb99f
src/aiogram_dialog/context/storage.py
@@ -129,8 +129,10 @@ def _context_key(self, intent_id: str) -> StorageKey:
129
def _fixed_stack_id(self, stack_id: str) -> str:
130
if stack_id != DEFAULT_STACK_ID:
131
return stack_id
132
+ # private chat has chat_id=user_id and no business connection
133
if self.user_id in (None, self.chat_id):
- return stack_id
134
+ if self.business_connection_id is None:
135
+ return stack_id
136
return f"<{self.user_id}>"
137
138
def _stack_key(self, stack_id: str) -> StorageKey:
0 commit comments