eensymachines-in / tgram-scraper

micro service based on Go, that can when triggered get the updates for the bot.
0 stars 0 forks source link

Go Gin HTTP endpoint for u-service #4

Closed kneerunjun closed 1 year ago

kneerunjun commented 1 year ago
kneerunjun commented 1 year ago

Telegram request needs to handle timeout scenarios - Telegram server is typically found to be fast, but incase it takes longer to respond the api call here on the u-service should timeout

kneerunjun commented 1 year ago

Typical endpoint looks like this /bots/:botid/scrape/:offset. botid is for getting the appropriate bot token (loaded into the environment from secrets.) while the offset is the update offset