Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can I use to implement Telegram messages in my website?

After searching all over the web, I am forced to ask: What can I use to send messages using the Telegram API? JavaScript or PHP preferably. I have a group of friends that I wish I could tell through certain events on the website.

Here's an interesting link: http://reyero.net/es/node/263

Update

  • REST API for Telegram: https://jaconda.im/
  • Simple JS library for Telegram API: https://github.com/sunriselink/TelegramApi
  • Telegram API: https://core.telegram.org/api
like image 945
naoxink Avatar asked Feb 18 '14 09:02

naoxink


2 Answers

Check this link: https://github.com/zhukov/webogram this is a chrome app using javascript.

API can found here: https://core.telegram.org/api

Other applications using the api can found here: https://telegram.org/apps

use the source luke :)

I would not do it in javascript because you have to give alle the authentication infos to the client.

like image 55
Cracker0dks Avatar answered Sep 29 '22 09:09

Cracker0dks


Simple JS library to operate the calls to Telegram API servers using Javascript: https://github.com/sunriselink/TelegramApi

That's what you have been looking for, and me too.

Works this way (from the README.md):

telegramApi.getUserInfo().then(function(user) {
if (user.id) {
    // You have already signed in
} else {
    // Log in
}
like image 23
philbv Avatar answered Sep 29 '22 10:09

philbv