Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F10907656
index.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
782 B
Subscribers
None
index.js
View Options
// Copyright (c) 2023 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
'use strict'
;
const
config
=
require
(
'./config'
);
const
{
ChronikClient
}
=
require
(
'chronik-client'
);
// Initialize chronik on app startup
const
chronik
=
new
ChronikClient
(
config
.
chronik
);
// Initialize telegram bot on app startup
const
secrets
=
require
(
'../secrets'
);
const
TelegramBot
=
require
(
'node-telegram-bot-api'
);
const
{
botId
,
channelId
}
=
secrets
.
prod
.
telegram
;
// Create a bot that uses 'polling' to fetch new updates
const
telegramBot
=
new
TelegramBot
(
botId
,
{
polling
:
true
});
const
{
main
}
=
require
(
'./src/main'
);
main
(
chronik
,
config
.
ifpAddress
,
telegramBot
,
channelId
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 08:08 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4534325
Default Alt Text
index.js (782 B)
Attached To
rSTAGING Bitcoin ABC staging
Event Timeline
Log In to Comment