go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API

Home Page:https://go-telegram-bot-api.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No getHistory implementation?

cyb3rjerry opened this issue · comments

Hey there! Before making a PR I felt like reaching out here would be a good first step:

I'm noticing messages.getHistory doesn't seem to be implemented. Am I missing something here? I'm trying to see if there's ways to get the last N messages in the chat but haven't found a way to do so yet. When using GetUpdates I only see the last messages within some mysterious(?) timeframe. After X time, I can't fetch those messages anymore.

If I can avoid it, I'd prefer to avoid launching a goroutine just to store them locally to then review them later. Is there any reason specific reason why this hasn't been implemented? I'll gladly make a PR if it's just that no one had the time to do so :)

Cheers!

Ah so I just realized Telegram doesn't expose getHistory over it's web API. That sucks :(