vysheng / tg

telegram-cli
GNU General Public License v2.0
6.44k stars 1.52k forks source link

[Advert] - Php wrapper for telegram-cli (works very well with Laravel) #525

Open jonnywilliamson opened 9 years ago

jonnywilliamson commented 9 years ago

I hope this doesn't count as spamming that's not my intention.

I've created a a simple wrapper for telegram-cli that works really well with Laravel. Based of the original code from zyberspace It allows you to integrate telegram-cli with your Laravel code and send messages really easily.

eg

// In routes.php

Route::get('/welcome' , function(){
    TG::sendMessage('User_name_or_id', 'Hi there welcome to our site!');
});

I hope someone finds it useful!

Laravel Wrapper for telegram-cli

luckydonald commented 9 years ago

Here is one in python too. pytg2 (Python Telegram Wrapper)

sender.send_msg("username", "Hello World!")

Of course you can also receive messages fairly easy as well. Just have a look in the examples of pytg2.