API Support Inquiry for Telegram Bot Integration

Hello, I am hosting a paste-sharing website on InfinityFree where users can create a paste and receive a shareable link. I would like to build a Telegram bot that can interact with my site using an API, allowing users to submit text and automatically receive a paste link. Could you please confirm whether InfinityFree supports running or accessing APIs for this purpose? If direct API functionality is not supported, is there any alternative method (such as webhooks, external scripts, or third-party services) that can be used to connect a Telegram bot with my hosted site?

1 Like

Telegram is specifically blocked on InfinityFree due to historic abuse, so in short, no its not possible.

9 Likes

Thank you for the clarification. That answers my question.

Just to confirm, since Telegram connections are blocked, the recommended approach would be to host the Telegram bot on an external service and have it communicate with my InfinityFree site via HTTP requests (for example, sending data to a PHP script that generates the paste link). Please let me know if this method is acceptable.

Thanks again for your help.

1 Like

There’s a security system on Infinity Free that blocks bots. So only browsers can access your site. So this would not be possible either. Unfortunately, there is simply no way to connect to Telegram from an InfinityFree site (or connect to your site from Telegram)

5 Likes

I’m sorry, but you really should not be using our hosting for this.

  • Access to the Telegram API is blocked on our hosting due to rampant abuse for spam bots.
  • Using our hosting to host an API accessed from somewhere else is not allowed (we provide website hosting only).
  • Pastebin style sites are generally frowned upon as they are often used for abusive purposes, like sharing malware, and storing stolen data. As far as I know, our current policy is not to block such sites outright, but we are still holding you responsible for the content on it. And if we find that the website is being used for malicious purposes, we will terminate it.
8 Likes

Thank you for the clarification and for explaining the policy.

I understand your concerns. My website is intended only for sharing plain text pastes, not files or executable content. It is a small personal project and I do not expect public usage. However, if anyone else uses it, I will actively monitor the content and promptly remove anything malicious, abusive, or inappropriate.
I will ensure the site is used responsibly and complies with your terms of service.
Thnks again for your guidance.

1 Like

Plain text is perfectly fine for storing stolen data. And for distributing malware: it can easily be used to distribute scripting code like PHP, Python, Javascript or other programming languages that don’t need to be compiled to run, which existing malware can use to adapt their behavior on the fly. Or just use it for shell/batch scripts, which can be run by a victim to infect their system without needing an executable at all.

“It’s plain text so it cannot be used for bad purposes” is a HUGE misunderstanding of how it works.

Not good enough.

If you don’t intend to allow public usage, then don’t allow public usage. A very straight forward and very effective method to prevent abuse is to simply not allow anyone other than yourself (and maybe a very small group of people you know you can really trust) to add content to it.

Making it public because “it’s just a small personal project, who would use it” is how sites get overrun with spam. Spammers know that these “small personal projects” usually don’t have good security and moderation and so are easy targets.


I would strongly urge you to reconsider hosting such a project yourself in the first place, because you seem to be grossly underestimating the risks of having a project like this.

7 Likes