Message2me is a simple command line program to send message via "Telegram-bot" or "Twilio-sms".
git clone https://github.com/RunnningPig/message2me.git
cd message2me && bash install.sh
-
You need have a twilio account.
-
Get following three parameters in Twilio Getting Started:
-
account_sid
-
auth_token
-
from_number
-
-
Configurate
twilio_account_sid
,twilio_auth_token
,twilio_from_number
andtwilio_to_number
parameters inmessage2me.conf
. -
Set the
enable_twilio
totrue
inmessage2me.conf
.
-
You need have a telegram account.
-
Get your chat id from get-id-bot.
-
Create a bot and get the bot authorization token referring to how-do-i-create-a-bot.
-
Configurate
telegram_chat_id
andtelegram_token
inmessage2me.conf
. -
Set the
enable_telegram
totrue
inmessage2me.conf
.
If all is ok, you just execute message2me <your_message>
,and the mesaage will be send to you.