Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
AioSQLiteStorage is a modern async FSM Storage for Telegram Bots on Python. It is surprisingly easy to connect and use.
Install
.. code-block:: console
$ pip install sqlite-fsm-storage
Example of use in a telegram bot on aiogram:
.. code-block:: python
from aiogram import Bot, Dispatcher from aiogram.dispatcher.dispatcher import CancelledError from sqlite_fsm_storage import AioSQLiteStorage import asyncio
async def main(): bot = Bot(token='YOUR_BOT_TOKEN', parse_mode='HTML') storage = AioSQLiteStorage() await storage.start() dp = Dispatcher(storage=storage) await bot.delete_webhook(drop_pending_updates=True) try: await dp.start_polling(bot, allowed_updates=['message', 'callback_query']) except CancelledError: pass finally: await bot.session.close() await storage.close()
if name == 'main': asyncio.run(main())
Developer - Blaze Egor
FAQs
AioSQLiteStorage is a very good FSM Storage for Telegram bots on Python.
We found that sqlite-fsm-storage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.