S
S
samperirrrrr2020-12-16 23:56:44
In contact with
samperirrrrr, 2020-12-16 23:56:44

How to extract text from a message.?

Hello everyone, how to extract text from a message. like this "kick (here is the id of a person) (and here is the reason)"

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dev12345, 2020-12-19
@samperirrrrr

event.text.split()[1] # ид человека 
event.text.split()[2] # причина

A
Andrey B., 2017-01-19
@dmitriyavizhich

https://jsfiddle.net/kqryt348/

A
Andrew, 2017-01-19
@AndrewHaze

Can it be like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question