小编Sam*_*mat的帖子

电报API:如何从公共频道获取消息,我不参与?

一旦我知道了,我就可以通过channels.getMessages请求成功地从频道中检索消息message IDs.顺便说一句,我通过contacts.search查找频道ID .

目前,消息ID是连续的整数,因此获取max_id可以解决问题.

我确信这是可能的,因为官方客户这样做(查看频道而不加入它).我将尝试通过阅读其来源了解官方桌面应用程序如何做到这一点,但任何帮助将不胜感激.

我需要这个,因为我正在写一个简单的公共电报频道 - > rss/web界面.

请不要将电报API与电报机器人API混淆.Bot API允许在新消息上接收"推送"消息,但没有"读取历史日志".

telegram

18
推荐指数
1
解决办法
9742
查看次数

gem install debugger -v'1.5.0'失败

我试图bundle在小牛队的大型项目中做一些宝石破坏或我的环境有问题,尽管这是rbenv的全新安装.

$ gem install debugger -v '1.5.0'
Building native extensions.  This could take a while...
ERROR:  Error installing debugger:
    ERROR: Failed to build gem native extension.

        /Users/samat/.rbenv/versions/1.9.3-p448/bin/ruby extconf.rb
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p448 provided with debugger-ruby_core_source gem.
**************************************************************************
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably …
Run Code Online (Sandbox Code Playgroud)

ruby macos ruby-on-rails bundler rbenv

4
推荐指数
2
解决办法
3321
查看次数

如何从xmonad默认配置中删除"完整"布局中的边框?

目前我用

import XMonad.Layout.NoBorders
...
xmonad $ defaultConfig { layoutHook = noBorders  $  layoutHook defaultConfig }
Run Code Online (Sandbox Code Playgroud)

但这会产生noBorder所有布局,而不仅仅是" Full".

我知道,我可以简单地layoutHook从默认配置复制定义并noBorder在" Full" 之前添加,但我想要美丽的方式,希望Haskell为它提供一些方法.

configuration haskell xmonad

2
推荐指数
1
解决办法
2281
查看次数