Command

data class Command(val name: String, val addressedTo: String? = null, val argument: String? = null)

A command as Telegram actually delivers one: a name, optionally the bot it is addressed to, and optionally an argument.

/start, /start@mybot, /start ABC-123 and /start@mybot ABC-123 are all the start command. The @bot suffix is not optional in a group — Telegram appends it whenever more than one bot can see the message — and the argument is how a deep link or a shared identifier enters a bot at all.

Constructors

Link copied to clipboard
constructor(name: String, addressedTo: String? = null, argument: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard