Hs anfibio bot

From HSS
Revision as of 17:55, 20 January 2024 by C0 (talk | contribs) (Created page with "ESTE CÓDIGO HAY QUE IMPLEMENTARLOOOOO para que tome las variables (corchetes). <pre> #!/bin/sh # # aquí se procesa la entrada de info desde el prompt u_u # curl --header "Content-Type: application/json" \ --request POST \ --data '{"chat_id":"[CHAT-ID]","parse_mode":"Markdown","text":"[TEXTO]"}' \ https://api.telegram.org/bot[TOKEN]/sendMessage </pre>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ESTE CÓDIGO HAY QUE IMPLEMENTARLOOOOO para que tome las variables (corchetes).

#!/bin/sh

#
# aquí se procesa la entrada de info desde el prompt u_u
#

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"chat_id":"[CHAT-ID]","parse_mode":"Markdown","text":"[TEXTO]"}' \
  https://api.telegram.org/bot[TOKEN]/sendMessage