![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
easy-telegram-mtproto
Advanced tools
npm install easy-telegram-mtproto
const TelegramClient = require ('easy-telegram-mtproto');
const data = require ('./login-data.json');
const main = async () => {
console.log (data);
const client = new TelegramClient (data.app.api_id, data.app.api_hash,
data.phone,
async () => data.phone,
() => {
const readline = require ('readline');
const rl = readline.createInterface ({
input: process.stdin,
output: process.stdout
});
return new Promise (resolve => {
rl.question ('Code', (answer) => {
rl.close ();
resolve (answer);
});
});
});
await client.login ();
const chats = await client.getChats ();
const me = chats.find ((chat) => chat.self);
console.log (me);
client.sendMessage (me, 'Hello, is it me you\'re looking for?');
};
main ();
TelegramClient (apiId, apiHash, name, getPhone, getCode, getRandomMessageId, storageFolder)
async asInputPeer (...args)
converts chat object to InputPeerasync login ()
logs in telegram if was not logged in beforeasync getChats ()
returns list of all chats (max 1000)async getAndSaveChatsData (jsonFileName = 'chats.json', txtFileName = 'chats.txt')
gets short chats data and saves it to fileasync chatHistory (chat)
reads all history from chatasync forwardMessages (from, to, messages)
forwardes messages from on chat to anotherasync deleteMessagesFromChannel (from, messages)
deletes selected message from channel or supergroupasync sendMessage (target, message)
sends message to chatasync call (...args)
calls custom API method. List of methodsawait client.call ('messages.sendMessage', {
peer: TelegramClient.asInputPeer (target),
random_id,
message,
});
FAQs
Telegram Client API wrapper for telegram-mtproto
The npm package easy-telegram-mtproto receives a total of 1 weekly downloads. As such, easy-telegram-mtproto popularity was classified as not popular.
We found that easy-telegram-mtproto demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.