I can not use the file_get_contents command

Username (e.g. epiz_XXX) or Website URL

https://erfan-design.ir

Error Message

I programmed a bot in Telegram in PHP and I use the file_get_contents command to send information to the bot, but no response is sent
please guide me

Other Information

(other information and details relevant to your question)

You’re probably experiencing this:

1 Like

Can you explain your issue in a little bit more detail? From what I can tell your sending data to another server, but correct me if i’m wrong.

Telegram bot programming in PHP language and hosting it on my own

I believe Telegram API is banned/blocked on free hosting

3 Likes

You cannot host bots here, this is the violation of our ToS hence we block it due to this.

2 Likes

what’s the solution?

Use a different hosting that allows bots.

3 Likes

https://repl.it/ is good for bot hosting

3 Likes

He cannot use replit due to the restrictions applied against his country.

1 Like

Yikes,vpn

Then use Glitch.

Please tell me a method that is free and usable in Iran

I got banned from there for exactly same reason.

He’s from the same country as mine that’s why I’m saying it.

4 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.