Giter Site home page Giter Site logo

twilio_sms_to_telegram's Introduction

twilio_sms_to_telegram

Receive SMS messages to Telegram account through Twilio

Requirements

  • PHP 5.5 or greater
  • Composer

Installation

  1. Change file mode for sms.log to allow write in the file. For example:

    chmod 777 sms.log
    
  2. Run composer update to install dependencies:

    composer update
    

Configuration

Twilio

After you create an account and add new phone number you should go to Manage Numbers -> Active Numbers -> Configure. On the bottom of the page you will see Messaging and A MESSAGE COMES IN. You should fill in it with your callback url (like http://example.com/sms_to_telegram.php )

See Twilio documentation for more info - https://support.twilio.com/hc/en-us/articles/223134127-Receive-SMS-messages-without-Responding

Telegram

{"ok":true,"result":[{"update_id":279129775,
"message":{"message_id":11,"from":{"id":123456,"first_name":"Name","username":"username"},"date":1487955282,"text":"1"}}]}
  • Copy your user id (123456 in the example) to CHAT_ID in the php file.

License

MIT

twilio_sms_to_telegram's People

Contributors

loadkpi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

twilio_sms_to_telegram's Issues

autoload.php no such file....

PHP Warning: require(/home/vuicodei/public_html/vendor/autoload.php): failed to open stream: No such file or directory in /home/vuicodei/public_html/sms_to_telegram.php on line 11
PHP Fatal error: require(): Failed opening required '/home/vuicodei/public_html/vendor/autoload.php'

where's file autoload.php in script?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.