1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "targets": [
12 "@telegram",
13 "https://t.me/durov",
14 "@BotNews",
15 "@TelegramTips",
16 "@tginfo",
17 "@apify",
18 "@github",
19 "@bitcoin",
20 "@ethereum",
21 "@binance_announcements",
22 "@coinbase",
23 "@notcoin",
24 "@toncoin",
25 "@fragment",
26 "@wallet_news",
27 "@QuizBot",
28 "@Stickers",
29 "@like",
30 "@vote",
31 "@gamee",
32 "@BotFather",
33 "@SpamBot",
34 "@PremiumBot",
35 "@DurgerKingBot",
36 "@ControllerBot",
37 "@IFTTT",
38 "@GmailBot",
39 "@YouTube",
40 "@Twitter",
41 "@Instagram",
42 "@Facebook",
43 "@WhatsApp",
44 "@CryptoBot",
45 "@wallet",
46 "@Tribute",
47 "@LivegramBot",
48 "@Manybot",
49 "@Combot",
50 "@DiscussBot",
51 "@GroupHelpBot"
52 ]
53};
54
55
56const run = await client.actor("maximedupre/telegram-info-scraper").call(input);
57
58
59console.log('Results from dataset');
60console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
61const { items } = await client.dataset(run.defaultDatasetId).listItems();
62items.forEach((item) => {
63 console.dir(item);
64});
65
66