📪️ · [email protected]
dahawong / instasaver Goto Github PK
View Code? Open in Web Editor NEWTelegram bot for saving article links to Instapaper.
Home Page: https://t.me/saveinstapaper_bot
Telegram bot for saving article links to Instapaper.
Home Page: https://t.me/saveinstapaper_bot
📪️ · [email protected]
When a user click a bookmark in inline query article list, the replying message should contains delete/like buttons, but right now, messages via bot seems can't react conversation handler.
like like/unlike
, shows an inline keyboard button that can be toggled between two states.
Cascaded <li>
and an <img>
is missing.
Source: https://blog.patreon.com/the-first-ever-patreon-creator-census
Target: https://telegra.ph/The-first-ever-Patreon-Creator-Census--Patreon-Blog-05-20
Add supports for other languages:
/language
to select interface language;ReplyKeyboard
.e.g. github.com repo home page
YouTube links should not be converted to telegraph preview
Draw some icons that indicate bookmark states in inline query articles:
Databases should be added, for these concerns shown below:
However, we should handle legacies first, for we're using pickle persistence now.
Refactor the code structure.
After saving a link, a page preview can be shown to the user via telegraph instant view. This should be done by converting bookmark's full-text html to telegraph valid nodes.
get_text
;Should clear up the conversation logic.
Detect the bookmark id from reply _to_message, then add hashtags to them in the database.
Add a inline keyboard button shows Move to folder…
after sending a saved bookmark, then it switch to an inline query in current chat that list all the folders the user has to move the bookmark to.
The inline query might looks like @saveinstapaper_bot /
After selecting the folder, a message sent via bot to trigger the actual moving process, like bookmark_{bookmark_id}_to_folder_{folder_id}
, this message should be handled by a specific regex message handler.
For inline keyboard action buttons, when archive feature is added, the like
state should be updated at the same time.
e.g. Expected:
import * as React from 'react';
import ReactDOM from 'react-dom';
const title = 'Hello React';
ReactDOM.render(
<div>{title}</div>,
document.getElementById('app')
);
but got:
import * as React from 'react';import ReactDOM from 'react-dom';
const App = () => { const [counter, setCounter] = React.useState(42);
return ( <div> <button onClick={() => setCounter(counter + 1)}> Increase </button> <button onClick={() => setCounter(counter - 1)}> Decrease </button>
{counter} </div> );};
ReactDOM.render( <App />, document.getElementById('app'));
Should handle error based on response code, e.g. don't save 404 url as a bookmark preview.
General errors:
1040: Rate-limit exceeded
1041: Premium account required
1042: Application is suspended
Bookmark errors:
1220: Domain requires full content to be supplied
1221: Domain has opted out of Instapaper compatibility
1240: Invalid URL specified
1241: Invalid or missing bookmark_id
1242: Invalid or missing folder_id
1243: Invalid or missing progress
1244: Invalid or missing progress_timestamp
1245: Private bookmarks require supplied content
1250: Unexpected error when saving bookmark
Folder errors:
1250: Invalid or missing title
1251: User already has a folder with this title
1252: Cannot add bookmarks to this folder
Operational errors:
1500: Unexpected service error
1550: Error generating text version of this URL
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.