Skip to content

Instantly share code, notes, and snippets.

@Cibernomadas Cibernomadas/main.go
Created May 20, 2018

Embed
What would you like to do?
if update.Message.IsCommand() {
var args []string
switch update.Message.Command() {
case "suma": // Comprobar comando suma
args = normalizaCadena(update.Message.CommandArguments())
case "resta": // Comprobar comando resta
args = normalizaCadena(update.Message.CommandArguments())
case "mult": // Comprobar comando multiplicación
args = normalizaCadena(update.Message.CommandArguments())
case "div": // Comprobar comando división
args = normalizaCadena(update.Message.CommandArguments())
case "start": // Comprobar comando start
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.