Through This Post you can learn How to add Carbon Generator Module For Any Telegram Bot with the Help of GitHub.
You Should Know Some Coding Knowledge about Telegram Bots to apply this module in your Bot.
You Need a Proper Working Bot Repo For Example any Group Manager Bot or Auto Filter Bot
Step 1 : Go To your Repo
Step 2 : Create a Folder Name modules
Step 3 : Create a File named carbon.py in that folder
Step 4 : Give the value that you need to import For example import pyrogram this changes based on your repo
Step 5 : After giving correct import values copy the carbon Generator code that I given below and paste in below the import
Step 6 : Edit codes as your wish which is changeable
Step 7 : Subscribe Our YouTube Channel For Tutorial Viedos
If you do any mistake in Import Module will not work
Any Help Contact Us Through Telegram Group
Bot.command('carbon', async ctx => {
ctx.reply("*Welcome!*\n_You can use me to Carbon for your texts And Codes!\nJust what to do? Send me a text, I'll convert it to Carbon Image then!_",{parse_mode: "MARKDOWN"});
ctx.question('carbon')
})
// This Module Created By https://telegram.me/rex_botz
Bot.on('answer', 'carbon', async ctx => {
var msg = ""+encodeURI(ctx.message.text+"")
var url = 'https://carbonnowsh.herokuapp.com/?code='+msg+'&backgroundColor=black'
// you can easily modifly color by changing color=black to another like Color=red
ctx.reply("`💠 Generating Carbon Please Wait.....`",{parse_mode: "MARKDOWN"});
ctx.api.sendPhoto(ctx.from.id, url, {
caption: "💠Succefully Generated Carbon Image"
})
});