dev@locazia: fixes
This commit is contained in:
1 parent
a03ec3d61d
commit
039abb5703
3 files changed
+20
-9
No files matched your search
@@ -67,7 +67,7 @@ class UserDataMiddleware(BaseMiddleware):
|
||||
data['chat_wrap'] = Wrapped_CBotChat(data['bot'], chat_id=user_id, db_session=session, user=user)
|
||||
data['memory'] = data['dispatcher']._s_memory
|
||||
|
||||
if isinstance(update_body, types.Message):
|
||||
if getattr(update_body, 'text', None):
|
||||
message_type = 'common'
|
||||
if update_body.text.startswith('/start'):
|
||||
message_type = 'start_command'
|
||||
|
||||
Reference in new issue
Block a user