Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

zohnannor/qrlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vk Bot Library

Example Longpoll bot:

from qrlib import Bot

token = "12345asdfgh"
bot = Bot(token=token, group_id=123456789, prefix='/')


@bot.message_handler(text = 'hello!')
async def hello():
    return 'Hello!'


@bot.message_handler(text = 'greet <name>')
async def greet(name: str):
    return f'Hello, {name}!'


@bot.message_handler(text = '<command>')
async def unknown_command(command: str):
    return f'Unknown command `{command}`'


bot.run()

Example Callback bot:

TODO

Releases

No releases published

Packages

No packages published

Languages