Code Monkey home page Code Monkey logo

Comments (4)

jdrydn avatar jdrydn commented on August 29, 2024 1

@mdibaiee You could use https://ngrok.com or https://letsencrypt.org if you're looking for SSL - I'm currently using letsencrypt for my personal dedi with a Telegram API endpoint, over SSL, and letsencrypt has meant I don't have to send a SSL certification to Telegram's setWebhook either! 😉

from node-telegram-api.

mdibaiee avatar mdibaiee commented on August 29, 2024

Hi, that is planned, I'm going to implement it in the coming days, if you want to contribute, I accept pull requests.

Thanks!

from node-telegram-api.

mdibaiee avatar mdibaiee commented on August 29, 2024

Hey @themasch, I just pushed a commit which adds support for webhooks, but as I don't have an HTTPS certification or any experience using HTTPS, I'm not sure if it will work with HTTPS connections. b55fb3c

I tested it with HTTP and it was OK, can you please test this and give feedback? Also if you manage to get it running, please give me your code so I can add it to our examples.

To use webhooks:

bot.start({
  url: 'YOUR_HTTPS_URL', // this is sent to Telegram API's setWebhook, telegram will send requests to this URL
  server: { // This object is passed to https.createServer
    key: 'something'
  }
});

Thanks!

from node-telegram-api.

mdibaiee avatar mdibaiee commented on August 29, 2024

@jdrydn You're right! Thank you for mentioning this! 👍

from node-telegram-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.