/Telegram

Simple Telegram Bot messenger

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Telegram Messenger

Simple messenger for your bot

This ver simple tool can be used in your scripts, or home automation. Create your own bot, and send messages (alerts, info, etc) to your mobile device or desktop.

Requirements

  • Python 3.x (compatible with 2.7)
  • Python module: requests
  • A valid and active Telegram Bot

Installing

  1. Clone it to your machine
  2. Import the class or copy the code
  3. Initiate the class:
tbot = Messenger(bot_id='bot678009249:AAEvi26jWxM0r_yjHEYEBXGSbNe4ZcSRK-E', chat_id='62017281')

And send!

tbot.send('hello there')