All Projects → aiogram → Aiogram

aiogram / Aiogram

Licence: mit
Is a pretty simple and fully asynchronous framework for Telegram Bot API written in Python 3.7 with asyncio and aiohttp.

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to Aiogram

Telegram Bot Sdk
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
Stars: ✭ 2,212 (+0.77%)
Mutual labels:  telegram-bot-api, bot, telegram-bot, bot-framework
Haskell Telegram Api
Telegram Bot API for Haskell
Stars: ✭ 184 (-91.62%)
Mutual labels:  telegram-bot-api, bot, telegram-bot
Java Telegram Bot Tutorial
Java Telegram Bot Tutorial. Feel free to submit issue if you found a mistake.
Stars: ✭ 165 (-92.48%)
Mutual labels:  telegram-bot-api, bot, telegram-bot
Telegraf
Modern Telegram Bot Framework for Node.js
Stars: ✭ 5,178 (+135.9%)
Mutual labels:  bot, telegram-bot, bot-framework
Telebot.nim
Async client for Telegram Bot API in pure Nim [Bot API 5.1]
Stars: ✭ 93 (-95.76%)
Mutual labels:  telegram-bot-api, bot, telegram-bot
Telegram.bot
.NET Client for Telegram Bot API
Stars: ✭ 1,964 (-10.52%)
Mutual labels:  telegram-bot-api, bot, telegram-bot
webhook-aiogram-heroku
A sample telegram bot made with aiogram, that fetches updates using the web-hook connection. Can be easily deployed to Heroku.
Stars: ✭ 36 (-98.36%)
Mutual labels:  telegram-bot, telegram-bot-api, aiogram
Spytrojan keylogger
[Solo para programadores] Troyano espía | Keylogger solo para Windows, se replica en el sistema y se inicia automaticamente al iniciar sesión. | Envío de registro mediante [Base de Datos], [Gmail] o [BotTelegram].
Stars: ✭ 32 (-98.54%)
Mutual labels:  telegram-bot-api, bot, telegram-bot
Mypackbot
🤖 Your own unlimited pack of Telegram-stickers
Stars: ✭ 18 (-99.18%)
Mutual labels:  telegram-bot-api, bot, telegram-bot
Java Telegram Bot Api
Telegram Bot API for Java
Stars: ✭ 819 (-62.69%)
Mutual labels:  telegram-bot-api, bot, telegram-bot
Urban Bot
🤖 The universal chatbot library based on React. Write once, launch Telegram, Facebook, Slack, ... every messenger with chatbots
Stars: ✭ 223 (-89.84%)
Mutual labels:  bot, telegram-bot, bot-framework
Telebot
The easy way to write Telegram bots in Node.js
Stars: ✭ 1,096 (-50.07%)
Mutual labels:  telegram-bot-api, bot, telegram-bot
antirobot aiogram
Телеграм бот для блокировки спама
Stars: ✭ 26 (-98.82%)
Mutual labels:  asyncio, telegram-bot-api, aiogram
Informer
A Telegram Mass Surveillance Bot in Python
Stars: ✭ 745 (-66.06%)
Mutual labels:  telegram-bot-api, bot, telegram-bot
Bot Telegram
Exemplo de como criar um BOT para o melhor app de mensagens do mundo: Telegram.
Stars: ✭ 53 (-97.59%)
Mutual labels:  telegram-bot-api, bot, telegram-bot
Zanzara
Asynchronous PHP Telegram Bot Framework built on top of ReactPHP
Stars: ✭ 107 (-95.13%)
Mutual labels:  telegram-bot-api, bot, telegram-bot
Slack Machine
A sexy, simple, yet powerful and extendable Slack bot
Stars: ✭ 91 (-95.85%)
Mutual labels:  bot, bot-framework
Botframework Hubot
Hubot adapter for botframework
Stars: ✭ 91 (-95.85%)
Mutual labels:  bot, bot-framework
Telegram Bot
Telegram Bot using AWS API Gateway and AWS Lambda
Stars: ✭ 96 (-95.63%)
Mutual labels:  bot, telegram-bot
Tgdr
Telegram directory to discover channels, bots and groups.
Stars: ✭ 91 (-95.85%)
Mutual labels:  bot, telegram-bot

AIOGram

Financial Contributors on Open Collective [Telegram] aiogram live PyPi Package Version PyPi status Downloads Supported python versions Telegram Bot API Documentation Status Github issues MIT License

aiogram is a pretty simple and fully asynchronous framework for Telegram Bot API written in Python 3.7 with asyncio and aiohttp. It helps you to make your bots faster and simpler.

Examples

📚 Click to see some basic examples

Few steps before getting started...

  • First, you should obtain token for your bot from BotFather.
  • Install latest stable version of aiogram, simply running pip install aiogram

Simple getMe request

import asyncio
from aiogram import Bot

BOT_TOKEN = ""

async def main():
    bot = Bot(token=BOT_TOKEN)

    try:
        me = await bot.get_me()
        print(f"🤖 Hello, I'm {me.first_name}.\nHave a nice Day!")
    finally:
        await bot.close()

asyncio.run(main())

Poll BotAPI for updates and process updates

import asyncio
from aiogram import Bot, Dispatcher, types

BOT_TOKEN = ""

async def start_handler(event: types.Message):
    await event.answer(
        f"Hello, {event.from_user.get_mention(as_html=True)} 👋!",
        parse_mode=types.ParseMode.HTML,
    )

async def main():
    bot = Bot(token=BOT_TOKEN)
    try:
        disp = Dispatcher(bot=bot)
        disp.register_message_handler(start_handler, commands={"start", "restart"})
        await disp.start_polling()
    finally:
        await bot.close()

asyncio.run(main())

Moar!

You can find more examples in examples/ directory

Official aiogram resources:

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Code of conduct].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].