barreljan / Telegram

Simple Telegram Bot messenger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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')

About

Simple Telegram Bot messenger

License:GNU General Public License v3.0


Languages

Language:Python 100.0%