NATION

PASSWORD

[Idea] Telegrams Private Shard

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Vleerian
Spokesperson
 
Posts: 195
Founded: Feb 07, 2022
Father Knows Best State

[Idea] Telegrams Private Shard

Postby Vleerian » Fri Jan 17, 2025 11:45 am

The "why": I want to do two things,
1: be able to pull telegram data from my main nation and a few others to create a "combined inbox" of sorts. It is possible to tell that you have a new telegram via private shard, but beyond that there is no way to access the contents of telegrams legally via script (to my knowledge).

2: read a telegram, process it's contents, and automatically respond via the Telegrams API, as part of a project to create a (mostly) fully automated regional administration.

The "how":
A private shard for nations, something like
https://www.nationstates.net/cgi-bin/ap ... =telegrams
It would return all telegrams the nation's inbox, a la
Code: Select all
<NATION>
  <TELEGRAMS>
    <TELEGRAM status="unread">
        <SENDER>Testlandia<SENDER>
        <TYPE>External</TYPE>
        <TIMESTAMP>12345678</TIMESTAMP>
        <CONTENTS>Hello, World!</CONTENTS>
  </TELEGRAMS>
</NATION>
Last edited by Vleerian on Fri Jan 17, 2025 12:31 pm, edited 1 time in total.
Vleerian - Also known as Aurum Rider
Creator of FATTKatt and zoomies, Author of The Bacchist Manifesto
Designer of many Malice logos, headers, and flags. Certified Ruffian

User avatar
Kreigsreich of Iron
Senator
 
Posts: 4564
Founded: Jul 11, 2022
Corporate Police State

Postby Kreigsreich of Iron » Fri Jan 17, 2025 11:47 am

1 will probably be included in the Accounts system.


”A is A”
-Ayn Rand


NStats are canon.- From the river to the sea, the Jewish people will be free!

User avatar
Omnicontrol
Diplomat
 
Posts: 843
Founded: Sep 03, 2021
Corporate Police State

Postby Omnicontrol » Fri Jan 17, 2025 12:03 pm

This seems very useful - totally support.
Disgruntled queer pedantic asshole.
United Calanworie wrote:Edit 2: what the actual fuck is going on here

Reventus Koth wrote:you're right guys my bad the next time i write a treaty i'll make sure to leave the possibility of raiding the other signatory on the table

All-American Confederacy wrote:I leik train :D


||||||||||||||| Trans rights are human rights.


some random native wrote:ah yes raider that absolutely massacre hundred region.

User avatar
Vleerian
Spokesperson
 
Posts: 195
Founded: Feb 07, 2022
Father Knows Best State

Postby Vleerian » Fri Jan 17, 2025 12:06 pm

Kreigsreich of Iron wrote:1 will probably be included in the Accounts system.

With or without accounts, I think it would be beneficial for this to be available on the API - having my inbox available on my personal notes app, or on discord, would be more useful and more available than on the site
Vleerian - Also known as Aurum Rider
Creator of FATTKatt and zoomies, Author of The Bacchist Manifesto
Designer of many Malice logos, headers, and flags. Certified Ruffian

User avatar
United Calanworie
Technical Moderator
 
Posts: 5193
Founded: Dec 12, 2018
Democratic Socialists

Postby United Calanworie » Fri Jan 17, 2025 1:40 pm

Noting that this has already been partially developed by Roavin in the past. We are just as interested as yall in this idea :p
@queerlyfe | She/Her/Hers
Getting Help Request (GHR) | One Stop Rules Shop (OSRS) | Routine Actions thread | NS Announcements Discord
Script Rules | API Documentation | Approved Image Hosts | How Bots are Regulated | NS Coders Discord

"...against all enemies, foreign and domestic..."
You are such a crybaby [...] all you do is lock threads and be a bitch to people, nobody likes you, you aren’t cool, you lock every thread for stupid reasons, often times not giving a reason, [...] all you do is sit on your computer all day on NationStates, locking threads at a rate 5x higher than any other mod [...] stop trying so hard to impress people, literally nobody like you.
Have a good day

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

Postby Roavin » Sat Jan 18, 2025 10:19 am

For historical reasons (remember NS is over 2 decades old), it's a bit hard right now in the NS internals to separate telegram display from telegram queries, and that would be necessary to provide an API endpoint. I've started some progress toward splitting that in order to allow that (and other things we will eventually need), but other things had to be prioritized here and there.

It will be done at some point, just no promises on when.
NationStates Administrator

Helpful Resources: One Stop Rules Shop | API documentation | NS Coders Discord

User avatar
Vleerian
Spokesperson
 
Posts: 195
Founded: Feb 07, 2022
Father Knows Best State

Postby Vleerian » Sat Jan 18, 2025 11:43 am

Roavin wrote:For historical reasons (remember NS is over 2 decades old), it's a bit hard right now in the NS internals to separate telegram display from telegram queries, and that would be necessary to provide an API endpoint. I've started some progress toward splitting that in order to allow that (and other things we will eventually need), but other things had to be prioritized here and there.

It will be done at some point, just no promises on when.

Always cool to get peeks behind the curtain like this, thank you for the reply :)
Vleerian - Also known as Aurum Rider
Creator of FATTKatt and zoomies, Author of The Bacchist Manifesto
Designer of many Malice logos, headers, and flags. Certified Ruffian


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: No registered users

Advertisement

Remove ads