Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

201
Views
¿Cómo puedo resolver mi problema al publicar un signo de número para hacer un hashtag?

Estoy tratando de publicar # sing para que algunas palabras se conviertan en hashtags, pero el código no funciona y es a través de API usando este código:

 true == function() { var getMyItem = function (str) { if (sessionStorage.getItem(str) == null) { setMyItem(str, 0); return 0; } return sessionStorage.getItem(str); } var setMyItem = function (key, value) { sessionStorage.setItem(key, value); } function bot(post) { const Http = new XMLHttpRequest(); var Token="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // Token var ID= "xxxxxx"; var url= 'https://bot.xxx/api/'+Token+'/sendMessage?text='+post+'&chat_id='+ID; Http.open("GET", url); Http.send(); } // you need to change the url variable contents for your own Telegram API or those of the same SN APIs..

Entonces, cuando se trata de llamar a la publicación como con este código:

 var myDate = new Date().toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1"); var post_n = "%23Hi. It's: " + myDate + "\n"; var post = encodeURI(post_n); if (getMyItem(key + "htr") != "yes") { bot(post); setMyItem((key + "htr"),"yes"); } return true; } }()

, no es compatible con el inicio de sesión # en mis navegadores, incluidos Chrome y Firefox, y en realidad no se envía nada. Entonces, si fuera para Telegram, el bot se vería así (y no sé si funciona o no, pero estoy hablando de otro SN): var url= 'https://api.telegram.org/'+Token+' ...

Por favor, dígame cómo enviar el código #. Por cierto, "%23" no funciona.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!