Simple telegram api
Project description
teleapi
Easy telegram API
See official telegram api documentation
Install
pip install teleapi
Usage
from teleapi import TelegramApi
BOT_TOKEN = 'TOKEN'
CHAT_ID = 'example_chat_id'
PROXY = 'soks5h://USERNAME:PASSWORD@IP:PORT'
telegram_api = TelegramApi(BOT_TOKEN, proxy=PROXY)
telegram_api.send_message(CHAT_ID, 'Hello world!')
More examples
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
teleapi-0.1.7.tar.gz
(2.5 kB
view hashes)