【问题标题】:TLSharp function GetHistoryAsync returns only 100 last messagesTLSharp 函数 GetHistoryAsync 仅返回 100 条最后的消息
【发布时间】:2017-07-28 14:20:36
【问题描述】:

我在 Telegram 聊天中有 2714 条新消息。我用“limit”参数调用 GetHistoryAsync 等于 10000,但函数只返回 100 条最后一条消息。有人知道是 TLSharp 错误还是 Telegram 协议限制?

【问题讨论】:

    标签: c# telegram


    【解决方案1】:

    您不能在 1 个请求中获得超过 100 条消息/视图/...,但您可以使用 max_id 和 offset 来获得特定的 100 条消息。

    public async Task<TLAbsMessages> GetHistoryAsync(TLAbsInputPeer peer, int offset, int max_id, int limit)
    

    【讨论】:

      猜你喜欢
      • 2011-07-27
      • 1970-01-01
      • 2011-07-03
      • 1970-01-01
      • 2016-09-24
      • 2014-11-15
      • 1970-01-01
      • 2020-02-26
      • 2013-02-28
      相关资源
      最近更新 更多