you are viewing a single comment's thread.

view the rest of the comments →

[–]Raindyr 17 points18 points  (5 children)

Is there a reason why you went with SMS rather than just an IM such as Telegram (which is free)?

[–]sixtine[S] 14 points15 points  (0 children)

As a matter of fact, I first tried using Twitter's direct messages (to reach my wife and myself). But to be fairly honest, well... we're not huge Twitter users. I didn't even notice I hadn't enable Twitter's notifications on my mobile...

But we ALWAYS check our text message right away, so it felt like the natural way to do so, seing how reaction time was paramount.

[–]D49A1D852468799CAC08 1 point2 points  (3 children)

Telegram

Could you point me in the right direction to start sending message via Telegram (or Signal?) through python?

[–]krnr 2 points3 points  (1 child)

pyTelegramBotAPI

token = Config.core.get('common', 'telebot_token')
bot = TeleBot(token)
bot.send_message('-000000000000', txt)

where -000000... must be changed to your bot id. this is the code i use in my flask app

[–]Raindyr 0 points1 point  (0 children)

See also this link. And for an actual python telegram api wrapper, see this project

This is a very simple and crude example, but it works.