deltachat-bot / deltabot-cli-py Goto Github PK
View Code? Open in Web Editor NEWLibrary to speedup Delta Chat bot development
License: Mozilla Public License 2.0
Library to speedup Delta Chat bot development
License: Mozilla Public License 2.0
Currently default branch is installed:
deltabot-cli-py/pyproject.toml
Line 25 in 10ce04f
This results in errors when looking up event type
attribute which got renamed into kind
on the default master
branch.
This can be worked around by doing
pip install --force-reinstall git+https://github.com/deltachat/deltachat-core-rust.git@stable#subdirectory=deltachat-rpc-client
but ideally pyproject.toml
should link to this URL.
#!/usr/bin/env python3
"""Minimal echo-bot example."""
from deltachat2 import MsgData, events
from deltabot_cli import BotCli
cli = BotCli("echobot")
@cli.on(events.RawEvent)
def log_event(bot, accid, event):
bot.logger.info(event)
@cli.on(events.NewMessage)
def echo(bot, accid, event):
msg = event.msg
bot.rpc.send_msg(accid, msg.chat_id, MsgData(text=msg.text))
if name == "main":
cli.start()
run python3 echo.py email password
then:
python3.12/site-packages/deltachat2/events.py", line 96, in filter
assert isinstance(event, CoreEvent), "event must be an instance of CoreEvent"
AssertionError: event must be an instance of CoreEvent
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.