This is a lightweight and powerful wrapper for the TrueConf Server Chatbot API which enables quick integration of chatbots into TrueConf solutions.
Tip
We were inspired by the popular aiogram library, so, the transition will be simple for developers already familiar with this library.
- Easy integration with the TrueConf Server Chatbot API
- Quick start with the
python-trueconf-bot
package - Modern and intuitive Python API (
from trueconf import Bot
) - Support for all major TrueConf Server chatbot features.
Important
Chatbot features are supported in TrueConf Server 5.5 or above, TrueConf Enterprise, and TrueConf Server Free.
import asyncio
from trueconf import Bot, Dispatcher, Router, Message, F, ParseMode
from os import getenv
router = Router()
dp = Dispatcher()
dp.include_router(router)
TOKEN = getenv("TOKEN")
bot = Bot(server="video.example.com", token=TOKEN, dispatcher=dp)
@router.message(F.text)
async def echo(msg: Message):
await msg.answer(f"You says: **{msg.text}**", parse_mode=ParseMode.MARKDOWN)
async def main():
await bot.run()
if __name__ == "__main__":
asyncio.run(main())
All updates and releases are available in the repository. Track the build status and test coverage.
Start building smart and reliable bots for TrueConf today with python-trueconf-bot!