chr233 / xinjingdailybot Goto Github PK
View Code? Open in Web Editor NEWTelegram投稿机器人,支持多图与权限管理
Home Page: https://t.me/xinjingdaily_bot
License: GNU Affero General Public License v3.0
Telegram投稿机器人,支持多图与权限管理
Home Page: https://t.me/xinjingdaily_bot
License: GNU Affero General Public License v3.0
使用命令 /command 设置菜单后,尝试好几个方法都无法清空命令菜单栏,我其它机器人手动在教父机器人中设置命令或清空命令,可以正常使用,这是代码问题还是服务器问题?
I 2023/08/01 18:45:19.130 [XinjingdailyBot.Service.Bot.Common.UpdateService] 【私聊|CyrusAntony】 Cyrus Antony(@AntonyCyrus) [文本] /start
E 2023/08/01 18:45:19.142 [XinjingdailyBot.Service.Bot.Common.PollingService] 接收服务运行出错 MySqlConnector.MySqlException (0x80004005): Duplicate entry '5767935565-7773' for key 'dialogue.index_chat'
at SqlSugar.MySqlProvider.ExecuteCommandAsync(String sql, SugarParameter[] parameters)
at SqlSugar.MySqlProvider.ExecuteCommandAsync(String sql, SugarParameter[] parameters)
at SqlSugar.InsertableProvider1.ExecuteCommandAsync() at SqlSugar.SimpleClient
1.InsertAsync(T insertObj)
at XinjingdailyBot.Service.Data.DialogueService.RecordMessage(Message message)
at XinjingdailyBot.Service.Bot.Common.DispatcherService.OnMessageReceived(Users dbUser, Message message)
at XinjingdailyBot.Service.Bot.Common.UpdateService.HandleUpdateAsync(ITelegramBotClient _, Update update, CancellationToken cancellationToken)
at Telegram.Bot.Polling.DefaultUpdateHandler.HandleUpdateAsync(ITelegramBotClient botClient, Update update, CancellationToken cancellationToken)
at Telegram.Bot.Polling.DefaultUpdateReceiver.ReceiveAsync(IUpdateHandler updateHandler, CancellationToken cancellationToken)
at Telegram.Bot.TelegramBotClientExtensions.ReceiveAsync(ITelegramBotClient botClient, IUpdateHandler updateHandler, ReceiverOptions receiverOptions, CancellationToken cancellationToken)
at Telegram.Bot.TelegramBotClientExtensions.ReceiveAsync(ITelegramBotClient botClient, Func4 updateHandler, Func
4 pollingErrorHandler, ReceiverOptions receiverOptions, CancellationToken cancellationToken)
at XinjingdailyBot.Service.Bot.Common.PollingService.DoWork(CancellationToken stoppingToken) Server Error Code: 1062;SqlState: 23000
假如凌晨有大量投稿,如果用户开了推送通知提醒,可能会对用户造成困扰,导致退订频道损失订阅者。
我的服务器是甲骨文的Arm机,ubuntu 20.04
尝试了 ./XinjingdailyBot 提示
root@ubuntu:~/tougao-bot# ./XinjingdailyBot
-bash: ./XinjingdailyBot: No such file or directory
使用sh XinjingdailyBot
XinjingdailyBot: 1: Syntax error: word unexpected (expecting ")")
查阅了一下 C# 程序可以使用 mono,安装后
root@ubuntu:~/tougao-bot# mono XinjingdailyBot
Cannot open assembly 'XinjingdailyBot': File does not contain a valid CIL image.
自行尝试了多种方式均无法启动,不是很了解这个语言。。所以希望作者 可以告知一下相关指令,谢谢!!!还是说暂时不支持Arm64呢?
希望增加一个自定义底部文本内容,如:
投稿内容
这是自定义底部文本的内容
这样就可以支持以下的内容
投稿内容
文本内容
频道:@xxx
群组:@xxx
投稿:@xxx
程序版本: 2.2.4.11
子版本: source
机器人发送的链接形式是
t.me/-100{Channel ID}/{Message ID}
正确应该为
t.me/c/{Channel ID}/{Message ID}
即:/-100
替换为 /c/
现在使用 /echo 回复后,对方每句话都需要按照投稿流程才能与管理员交流,不太方便。
在我这实际使用的时候,这套程序对于Unicode字符(如 igfonts.io 的艺术字体)会显示为“?”
这个是需要在Linux环境做更改吗?还是要修改一下程序配置
怎么开始运行
请问拒绝的消息不会发布在审核拒绝频道,怎么解决,还是本身就不会发布到审核拒绝频道?
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.