josereyero / telegram Goto Github PK
View Code? Open in Web Editor NEWPHP Wrapper and Drupal module using Telegram CLI
License: GNU General Public License v2.0
PHP Wrapper and Drupal module using Telegram CLI
License: GNU General Public License v2.0
I like to port telegram module to Drupal 8 as a part of Google Summer of Code 2017. I already have experience in porting ace editor module. My ace editor code is available as 8.x-dev version.
Hi
Sorry,I have a question about your project(telegram).
Can I get the message channels that I'm not their admin?
I want write a script that read message from other chanel and write to
my chanel.
I can do it?
best regards
thanks
I think the Telegram-cli is updated now
I don't know if your script is work with new version (Telegram-cli)
also , If I want to type command directly without using your classes
how can do it?
for example: msg user1 test
command('msg user1 test'); // just example
thank you very much
He seguido el tutorial para instalar el software. He conseguido ejecutar por terminal el script y poder enviar/recibir mensajes
he modificado el script.php e include.php de esta manera.
include.php
define('TELEGRAM_COMMAND', '/var/www/html/tg/tg/bin/telegram-cli');
define('TELEGRAM_KEYFILE', '/var/www/html/tg/tg/tg-server.pub');
define('TELEGRAM_CONFIG', '/etc/telegram/telegram.conf');
define('TELEGRAM_HOMEPATH', '/var/www/html/tg/configuracao');
send.php
el contenido de /etc/telegram/telegram.conf:
log_level = 0;
msg_num = 1;
config_directory = "/var/www/html/tg/configuracao";
y el contenido de /var/www/html/tg/configuracao/:
ls -la /var/www/html/tg/configuracao/
total 28
drwxrwxrwx 3 root root 4096 ene 15 10:17 .
drwxrwxrwx 5 vimes vimes 4096 ene 15 10:10 ..
-rwxrwxrwx 1 root root 1468 ene 15 10:29 auth
-rwxrwxrwx 1 root root 65 ene 15 10:17 config
drwxrwxrwx 2 root root 4096 ene 15 10:17 downloads
-rwxrwxrwx 1 root root 12 ene 15 10:17 secret
-rwxrwxrwx 1 root root 24 ene 15 10:29 state
(estan todos los archivos con permisos 777 porque estoy en local haciendo pruebas)
ejecuto el script desde terminal y la salida es esta:
pero no envia el mensaje, que puede ser????
gracias por tu tiempo y trabajo!
How can I send a text message in api Telegram in php without a cli , how do I send and where to send data ? , You need an example , someone who has ?
tank you for writing this wrapper on telegram-cli.
I read you library ant have a question about one class.
why you wait current thread for 100 millisecond in class TelegramProcess.php
line 128?
https://github.com/josereyero/telegram/blob/master/lib/Drupal/telegram/TelegramProcess.php#L128
tank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.