krau / kmua-bot Goto Github PK
View Code? Open in Web Editor NEW🍓✨ A 💕 Telegram❄️ Bot🍰🍥
Home Page: https://kmua.unv.app
License: GNU Affero General Public License v3.0
🍓✨ A 💕 Telegram❄️ Bot🍰🍥
Home Page: https://kmua.unv.app
License: GNU Affero General Public License v3.0
也允许通过命令手动获取
当图像尺寸过大时, graphviz error: Cannot encode picture as WebP. Error code: 5 (BAD_DIMENSION: Bad picture dimension. Maximum width and height allowed is 16383 pixels.)
render_waifu_graph 会空返回, 导致 Telegram Error: BadRequest: File must be non-empty
我是从博客看过来的,作者不打算更新这个系列了吗,我觉得还挺有意思的
作者你好,我很喜欢这个机器人。当我使用docker按照readme里面所提供的配置部署Kmua到自己的机器上的时候,我发现在群聊里Kmua可以quote到我所引用的消息,但是并不能正常的生成图片, 请问这个问题您有没有遇到过呢?
另外,我想了解一下有没有设定可以引用的时候只让Kmua加入语录而不pin这个message呢?
期待您的回复
就是waifu里的
你和 {common.mention_markdown_v2(waifu)} 已经结婚了哦, 还想娶第二遍嘛?
你今天的群幼老婆是 {mention_markdown_v2(waifu)} \!
改成类似
{common.mention_markdown_v2(user)} \!
\n
你和 {common.mention_markdown_v2(waifu)} 已经结婚了哦, 还想娶第二遍嘛?
{common.mention_markdown_v2(user)} \!
\n
你今天的群幼老婆是 {mention_markdown_v2(waifu)} \!
因为很多群为了防止bot被误触,会有删除bot命令的设置,
群友只能看到群宠被抽到,而无法知道是谁抽到群宠了。
所以类似场景下还是把双方都提及一下比较好。(做个开关?)
刚自己进docker改了一下,炸了.....还在排错中,先过来提个issues吧~~
我使用docker-从按照readme里面所提供的配置部署Kmua到自己的机器上的时候
使用/start 并不能呼出菜单
doker日志里显示为
2024-03-07 16:08:23.441 | INFO | kmua.callbacks.start:start:26 - [日] <start>
2024-03-07 16:08:24.178 | ERROR | kmua.handlers:on_error:292 - 在该更新发生错误
Update(message=Message(channel_chat_created=False, chat=Chat(first_name='日', id=63295008, type=<ChatType.PRIVATE>), date=datetime.datetime(2024, 3, 7, 16, 8, 23, tzinfo=<DstTzInfo 'Asia/Shanghai' CST+8:00:00 STD>), delete_chat_photo=False, entities=(MessageEntity(length=6, offset=0, type=<MessageEntityType.BOT_COMMAND>),), from_user=User(first_name='日', id=63295008, is_bot=False, language_code='zh-hans'), group_chat_created=False, message_id=18, supergroup_chat_created=False, text='/start'), update_id=271499)
错误信息
BadRequest:There is no photo in the request
#里面涉及的个人信息,是我按照报错格式瞎写的
看报错貌似其他信息都正常拉取到了,只是因为没获取到头像,导致/srart触发的回复消息没有发出来。
但是群里/q和/waifu时,bot确实获取到了头像,就有点搞不懂原因了。
已在botfather关闭隐私模式,开启内联,我之所以出错,是因为我还需要做什么额外的设置吗?
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.