(click-btn msg vuid btn-text)
(click-btn msg vuid row col)
Simulate clicking button in row
and col
or with text btn
in message msg
by virtual user with username vuid
. Exception would be thrown if there is no expected button. Returns msg
Simulate clicking button in `row` and `col` or with text `btn` in message `msg` by virtual user with username `vuid`. Exception would be thrown if there is no expected button. Returns `msg`
(pay-invoice msg vuid)
Simulate payment for invoice from message msg
by virtual user with username vuid
. Returns msg
Simulate payment for invoice from message `msg` by virtual user with username `vuid`. Returns `msg`
(send-message vuid data & opts)
Simulate sending raw message represented in data
by virtual user with username vuid
. In most cases you don't need this function. Use it only if you definitely know what you are doing. Optionaly use :silent
option to not save message in virtual user's state
Simulate sending raw message represented in `data` by virtual user with username `vuid`. In most cases you don't need this function. Use it only if you definitely know what you are doing. Optionaly use `:silent` option to not save message in virtual user's state
(send-photo vuid path)
(send-photo vuid caption path)
(send-photo vuid caption entities path)
Simulate sending photo with optional caption
from resource path
by virtual user with username vuid
. Optionaly entities
array can be provided for formatting caption
Simulate sending photo with optional `caption` from resource `path` by virtual user with username `vuid`. Optionaly `entities` array can be provided for formatting caption
(send-text vuid text)
(send-text vuid text entities)
Simulate sending text
by virtual user with username vuid
. Optionaly entities
array can be provided for formatting message
Simulate sending `text` by virtual user with username `vuid`. Optionaly `entities` array can be provided for formatting message
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close