NATION

PASSWORD

[API]Small QOL request: TG delivery reports

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
9003
Diplomat
 
Posts: 624
Founded: Oct 25, 2012
Corporate Police State

[API]Small QOL request: TG delivery reports

Postby 9003 » Sat May 27, 2023 4:38 pm

Can we add delivery reports as a shard in the API based off TGID or for an even easier way as part of the response or header that gets sent back to the user.

I like data and it be nice to see said data easily and open to the bot that's using the API to send the TG anyway.
Last edited by 9003 on Sun Jun 04, 2023 2:56 pm, edited 1 time in total.
proud member of PETZ people for the Ethical Treatment of Zombies

Active member of The cards market place discord

User avatar
Roavin
Admin
 
Posts: 1778
Founded: Apr 07, 2016
Democratic Socialists

Postby Roavin » Sun May 28, 2023 4:19 am

As a return for sendTG, it'd only be useful for long-running bots, since in 10 out of 10 cases the TG being sent will be in queue when sendTG returns.

A shard makes more sense. Are you looking for the nations as well, or just the stats?
Helpful Resources: One Stop Rules Shop | API documentation | NS Coders Discord
About me: Longest serving Prime Minister in TSP | Former First Warden of TGW | aka Curious Observations

Feel free to TG me, but not about moderation matters.

User avatar
9003
Diplomat
 
Posts: 624
Founded: Oct 25, 2012
Corporate Police State

Postby 9003 » Sun May 28, 2023 6:02 am

Roavin wrote:As a return for sendTG, it'd only be useful for long-running bots, since in 10 out of 10 cases the TG being sent will be in queue when sendTG returns.

A shard makes more sense. Are you looking for the nations as well, or just the stats?



My use cause just the stats.
But I can brain some advantages to having the list of nations as well if it’s not crazy extra work. As that will probably help someone in the near future if it was available.
proud member of PETZ people for the Ethical Treatment of Zombies

Active member of The cards market place discord

User avatar
Roavin
Admin
 
Posts: 1778
Founded: Apr 07, 2016
Democratic Socialists

Postby Roavin » Sun May 28, 2023 1:08 pm

It's not much extra work to include those, I'm just wary of doing it by default for when people start pulling the nations for TGs that have been running for years.
Helpful Resources: One Stop Rules Shop | API documentation | NS Coders Discord
About me: Longest serving Prime Minister in TSP | Former First Warden of TGW | aka Curious Observations

Feel free to TG me, but not about moderation matters.


Return to Technical

Who is online

Users browsing this forum: FlyLands, New Lockelle

Advertisement

Remove ads