Answer the question
In order to leave comments, you need to log in
Is it possible to create a chat for a website using the Telegram API?
I am faced with the task of developing a multi-user general chat (naturally with ajax) on the site.
I don’t want to reinvent the wheel, although there are a decent number of examples on the net: both good and not so good. Therefore, I decided to make a chat based on a ready-made solution. Then I remembered that Telegram is 100% open, but I just found api. There are no discussions or ready-made solutions anywhere :(
Therefore, the question arose: is it possible to create a multi-user chat based on the Telegram API.
Or can you suggest other solutions to the problem?
Thank you.
Answer the question
In order to leave comments, you need to log in
Telegram is not 100% open, it's a marketing myth.
The source code of the server is closed, only the protocol specifications and the source code of the clients are open.
https://tlgrm.ru/faq#can-can-I-use-my-server
https://tlgrm.ru/sources
PS Since the server part is closed - all talk about mega-security is nothing more than cheap populism . Absolutely no one bothers the server owners to read all the correspondence of their users.
You can tie a Telegram conversation to the site.
If there is already a conversation, add the @chatbro bot, log in via Telegram to chatbro.com , your chat will appear in the 'My Conversations' section. Now it can be embedded on any site.
There are ready-made services for organizing various kinds of realtime functions on
comet-server.ru sites
https://pusher.com/pricing
https://fanout.io/
www.gamooga.com/pricing
https://www.tambur.io/ pricing
https://www.hydna.com/plans-and-pricing/
to display the chat on the site, you can use the telegram widget https://tgwidget.com/
It is quite possible to write such a chat using the telegram API. And if you don’t want to write your own client, then you can generally use tg-cli as a backend for your chat on the site.
Here is a great service guys have created. Just from the web everything comes to Telegram - https://replain.cc/ru
border-radius and transform: skewX
https://jsfiddle.net/d2qrjaus/ (numbers need to be more precise)
If it doesn’t work, you can draw in SVG or on canvas
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question