#CBZ/CBR to telegra.ph article bot
A simple bot, that upload your CBZ/CBR archive with many chapters to telegra.ph and return url.
- Rename "appsettings.example.json" to "appsettings.json"
- Open appsetting.json and do first step configuration
{
"UserBotSettings": {
"ApiId": "AppID from my.telegram.org",
"ApiHash": "AppHash from my.telegram.org",
"PhoneNumber": "Phone number for userbot",
"FirstName": "Name",
"LastName": "Subname",
"Password": ""
},
"TelegramBotSettings":{
"BotUserName": "Bot username without @",
"Token": "Bot api token",
"ForwardChatId": "Chat id chat between the bot and the user bot, where the bot will send archives for downloading (Get him after first launch by /chatid)"
}
}
- Create your bot via @botfather and write his name to
BotUserName
without@
and api token toToken
- Register your application on my.telegram.org and write
ApiId
andApiHash
to UserBotSettings - Write your phone number to
PhoneNumber
(Need for work user bot) - Launch Bot
- When in console you will see
code:
write your authorization code from Telegram PM - Join in user bot account via official Telegram App
- Find your bot
- Write
/chatid
and paste numbers toForwardChatId
"ArticleUploaderSettings": {
"MaxParallelThreadsForScans": 9,
"MaxParallelThreadsForArticles": 9,
"UploadDelay": 20,
"MaxScansPerChapter": 30,
"EnableProxy": false,
"ProxyTxtFileName": "proxies.txt",
"AuthorName": "Telegra.ph author name",
"AccessToken": "Access Token from api.telegra.ph"
}
- Get
AccessToken
from api.telegraph.org/createAccount and copy value fromaccessToken
- Write any your name in
AuthorName
- Launch and use! ;)
"MaxParallelThreadsForScans"
- how many images from uploadable article will send parallel
"MaxParallelThreadsForArticles"
- how many article will send parallel
Warning! The number of sending threads is MaxParallelThreadsForArticles
x MaxParallelThreadsForScans
"UploadDelay"
- Delay for uploading scans and articles to telegra.ph
"EnableProxy""
- (Very buggy) Enable proxy for avoid "error: try later" when upload images. Use only when you have a good proxy servers. Prefer using higher UploadDelay
for avoid this problem.