How to get key name?

AkashiDom

Active member

How to get key name?​

As a telegram bot creator using macrodroid, I save user data based of their id(I make the id as key). But I want to make a command that send message to every user. So I need to read key name.

Edit: I removed something that could possibly the cause of nobody's helping
 
Last edited:

hsurB

Well-known member
If you use iterate dictionary/array action to send messages to all users there is magic text for a key - iterator key/array index.
So each time loop runs next key is stored under that magic text.
 

AkashiDom

Active member
If you use iterate dictionary/array action to send messages to all users there is magic text for a key - iterator key/array index.
So each time loop runs next key is stored under that magic text.
Thanks, I'll try
 

AkashiDom

Active member
For more details about syntax of these Magic texts, use Help option on Iterate Dictionary/Array action
Thanks but I have other problem
 

Dm114

Well-known member
Thanks but I have other problem
Sorry but I don't know JavaScript so I won't be able to help you on this field.

Anyway Regex rules and syntax are the same with MD as with other languages. So you probably won't be in trouble to use Regex.

As MD is not a compiled language, when using variables with Regex be careful their content will not conflict with the rule itself (with special characters).
 
Top