LIVE PORTAL • Telegram v11.8 API Synchronized • Free Animated Stickers
translate Translated

Can I run Telegram using my own server?

No. Telegram is a single unified cloud and does not support federation, so there is no supported way to run your own server and have it interoperate.

Why it is built that way

Federation would mean two users could end up on two different Telegram clouds. Messages, the contact graph, cloud history, sticker packs and channels would all have to reconcile across independent operators with different uptime, different security practices and different willingness to cooperate. The design treats one account reaching every other account identically as a property worth keeping, and that property is what federation would give up.

What is open, and what is not

OpenNot available
Client applications, as sourceThe server implementation
The MTProto protocol specificationRunning an interoperating instance
Client API and Bot APIFederating with the main network

So you can build your own client, or software that talks to Telegram, but not your own Telegram.

What you can self-host

  • A local Bot API server. Running the Bot API yourself removes several of the limits that apply to the public endpoint, including much larger file transfers.
  • Anything built on TDLib. Your own client or automation runs entirely on your own infrastructure, while still connecting to the Telegram network.
Telegram has said it is undecided about federation rather than opposed to it in principle. If a self-hosted, fully independent instance is a hard requirement for you today, a federated protocol is a better fit than waiting.
chevron_left All 98 official Telegram questions
Advertisement • Bottom Matched Content Slot