This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//api token bot | |
$botToken = " "; | |
$website = "https://api.telegram.org/bot".$botToken; | |
$update = file_get_contents('php://input'); | |
$update = json_decode($update, TRUE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Lista de la compra</title> | |
</head> | |
<body> | |
<script type="text/javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "======================" | |
puts "| CALCULADORA BÁSICA |" | |
puts "| EN RUBY |" | |
puts "======================" | |
ops = ["1.suma","2.resta","3.multiplicación","4.división"] | |
begin | |
puts "\n¿Qué operación deseas realizar?" |
OlderNewer