Skip to main content

aioworkers plugin for Telegram

Project description

https://travis-ci.org/aioworkers/aioworkers-tg.svg?branch=master https://img.shields.io/pypi/v/aioworkers-tg.svg

Plugin to work with Telegram in aioworkers.

Features:

  • Telegram user.
  • Telegram channels.
  • Telegram groups.

Usage

Install it with pip:

pip install aioworkers-tg

Create entity of bot in aioworkers config:

bot:
    cls: 'aioworkers_tg.bot.TelegramBot'
    api_token: '1234567890'

You can use it directly from context:

await context.bot.channel('@yourchannel').send_text("Hello from channel!")

Also it is possible to create chat instance and send messages directly:

chat:
    cls: 'aioworkers_tg.chat.TelegramChat'
    bot: 'bot' # reference to created bot
    group_id: '11111'
await context.chat.send_text("Hello!")

Project details


Release history Release notifications

This version
History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
aioworkers-tg-0.0.1.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page