我尝试覆盖电报机器人方法onUpdateReceived(更新更新),但由于某些原因不能使用.setChatId (见屏幕截图)。有什么想法吗?public void onUpdateReceived(Update update) {
// We check if the update has a message and the message
我正在使用电报bot api,我想在确定的时间内向用户发送消息,但是bot需要配置一个“消息”才能发送一些东西,我的问题是:可以发送一个模拟用户交互的更新?I的意思如下:我在这里创建的更新以模拟用户交互(sendUpdate)是一种自定义方法--例如,这实际上并不是 //sending theUpdate();
//method that telegram bot api uses to reply when you send a
我创建了一个主java文件,并为机器人添加了一条指令:在我创建的公共频道上说“我爱披萨”。 public static void main(String[] args) { TelegramBot bot = TelegramBotAdapter.build(“HERE YOUR API KEY”);