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


Download files

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

Source Distribution

aioworkers-tg-0.0.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file aioworkers-tg-0.0.1.tar.gz.

File metadata

  • Download URL: aioworkers-tg-0.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for aioworkers-tg-0.0.1.tar.gz
Algorithm Hash digest
SHA256 988bd8c0e2eee75900c0d9b182a199e782d1867fefd19a6f9e041d6a547a2377
MD5 a189f95911e5006aad41335767c38e2e
BLAKE2b-256 abba242823e0860a25a1ccefb042d7322dae869d6ffd09cd3b1598400e05d26d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page