Git Product home page Git Product logo

telegram-bot-api-worker's Introduction

Telegram Bot API Worker

You can use this script to create a CloudFlare Worker to send requests to Telegram Bot API if your ISP or Web host does not allow it.

How to Deploy

Please see the detailed instructions in docs/how-to-deploy.md

How to use

After you deploy the Worker, simply copy the worker URL and use it where you want to. The URL may look like this
https://my-worker.mysubdomain.workers.dev

How it works

After you deploy the Worker, simply use the worker URL in place of the Telegram Bot API URL. If your worker URL is https://my-worker.mysubdomain.workers.dev, then replace https://api.telegram.org in the Bot API URL.

So, https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/getMe

will become

https://my-worker.mysubdomain.workers.dev/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/getMe

Enjoy the talking to Telegram Bot API :)

telegram-bot-api-worker's People

Contributors

manzoorwanijk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

telegram-bot-api-worker's Issues

TLS handshake Error on server

Hello!
Thank you for your codes
I used it to make a worker on the Cloudflare and it was successful.
But when I used it in a Project, there was two problem:
First: I'm getting this error message:
ERROR Execution error getUpdates: request call: fasthttp do request: tls: failed to verify certificate: x509: certificate is valid for *.mywebsite.com, mywebsite.com, not api.telegram.org

Second:
there is two addresses for telegram bot used in the project, but here on your code I could see just one of them:
https://api.telegram.org
https://core.telegram.org/bots/api

you covered the first one, but not the second one

cloud you please help me about this?
I really need this.
Thank you again for all your efforts.

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.