get
- Description:
Getter Commands
- Source:
Methods
(async, static) del(ctx)
- Description:
/del
command handler
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ctx |
(async, static) get(ctx)
- Description:
/get
command handler
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ctx |
GrammyTypes.Context | Object |
(async, static) getList(ctx)
- Description:
/get_list
command handler
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ctx |
(async, static) redisDel(ctx, name) → {Promise}
- Description:
Delete data from Redis
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ctx |
||
name |
string |
Returns:
- Type
- Promise
(async, static) redisGet(ctx, name) → {Promise.<string>}
- Description:
Get data from Redis
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ctx |
||
name |
string |
Returns:
- Type
- Promise.<string>
(async, static) redisGetList(ctx) → {Promise.<Array.<string>>}
- Description:
Get list of names from Redis
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ctx |
Returns:
- Type
- Promise.<Array.<string>>
(async, static) redisSet(ctx, name, data) → {Promise}
- Description:
Set data in Redis
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ctx |
||
name |
string | |
data |
Returns:
- Type
- Promise
(async, static) set(ctx, interaction)
- Description:
/set
command handler
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ctx |
||
interaction |