This library from easy work with aiogram
Project description
aiodgram
What is this?
The module makes it easier for you to use the basic functions of AIOGRAM, such as sending messages/photos/video and start your bot.
Using
Let's import it first:
First, import class TgBot and types from the library (use the 'from ...
import TgBot, types' construct).
Setting class TgBot:
Example:
bot = TgBot(your token from botFather
)
in async define:
await bot.send_message(`chat id`, `text`)
or:
await bot.send_photo(`chat id`, `photo url`)
or:
await bot.send_video(`chat id`, `video url`)
.
For start your bot, you need write:
bot.start_polling(dispatcher=bot Dispatcher
, skip_updates=True or False
, on_startup=define for start
, on_shutdown=define for shutdown
).
Developer
author: Darkangel
my telegram: t.me/darkangel58414
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiodgram-0.1.2.tar.gz
(2.6 kB
view hashes)