UserState Sınıf

Botunuzun kullanıcı durumunu okur ve depolama alanına yazar.

Yeni bir UserState örneği oluşturur. :p aram depolama: :p aram ad alanı:

Oluşturucu

UserState(storage: Storage, namespace='')

Parametreler

Name Description
storage
Gerekli
namespace

Yöntemler

get_storage_key

Geçerli kullanıcı durumu için depolama anahtarını döndürür. :p aram turn_context: :return:

get_storage_key

Geçerli kullanıcı durumu için depolama anahtarını döndürür. :p aram turn_context: :return:

get_storage_key(turn_context: TurnContext) -> str

Parametreler

Name Description
turn_context
Gerekli

Öznitelikler

no_key_error_message

no_key_error_message = 'UserState: channel_id and/or conversation missing from context.activity.'