Hey buddy I need help regarding telegram bot development
I'm new to telegram bot development i have been stuck in one issue for 5 days and I can't figure it out It'd be great if you could help me pls
const{Telegraf}=require("telegraf");constaxios=require("axios");constbot=newTelegraf("XXXXX");bot.start((ctx)=>ctx.reply("Welcome"));bot.help((ctx)=>ctx.reply("Send me a sticker"));bot.on("sticker",(ctx)=>ctx.reply("👍"));bot.hears("hi",(ctx)=>ctx.reply("Hey there"));bot.hears("Wow",async(ctx)=>{letstateNames=awaitgetStates();console.log(stateNames);letlistt=[];for(letindex=0;index<stateNames.length-1;index+=2){listt.push([{text:stateNames[index],callback_data:String(index)},{text:stateNames[index+1],callback_data:String(index+1)},]);}console.log(listt);ctx.telegram.sendMessage(ctx.chat.id,"nani",{reply_markup:{inline_keyboard:listt,},});});bot.launch();// Enable graceful stopprocess.once("SIGINT",()=>bot.stop("SIGINT"));process.once("SIGTERM",()=>bot.stop("SIGTERM"));asyncfunctiongetStates(){url="https://api.covid19india.org/data.json";res=awaitaxios.get(url);stateArr=res.data.statewise;totalStates=stateArr.length;letstateName=newArray();for(leti=0;i<totalStates;i++){stateName[i]=stateArr[i].state;}// console.log(stateName);returnstateName;}
I'm trying to start a startup right now. I used to be a programmer but because of eye issues, I can't look at a computer screen for too long (photophobia) so I need help when I program.
Hello Rajitha, I need to receive specific photos from Telegram to a Telegram widget on my site. I can pay $100 if you can help. I will have lots of other things to do after that. The chat ID i want photos from has lots of images, and i only want those with a word before them. Suppose there are photos of animals and i only want the ones with cats, so the sentence before has to start with "cat" . And it can only be from the Channel owner, not people who comment.
I'm trying to start a startup right now. I used to be a programmer but because of eye issues, I can't look at a computer screen for too long (photophobia) so I need help when I program.
Hey buddy I need help regarding telegram bot development
I'm new to telegram bot development i have been stuck in one issue for 5 days and I can't figure it out It'd be great if you could help me pls
can you specify the issue ?
So basically I have an array i want to show elements from an array in inlineKeyboard buttons
I have explained it on stackoverflow:
stackoverflow.com/questions/676461...
Pls help
I'll take a look , and let you know .
Yes please
Hello Rajitha, I need to receive specific photos from Telegram to a Telegram widget on my site. I can pay $100 if you can help. I will have lots of other things to do after that. The chat ID i want photos from has lots of images, and i only want those with a word before them. Suppose there are photos of animals and i only want the ones with cats, so the sentence before has to start with "cat" . And it can only be from the Channel owner, not people who comment.
hi sami,
thanks for your offer but these days i am a bit busy , and not available for work .
Ok, thank you.
Hi Sami Folio, Is the issue resolved, or can we discuss further on it
can you state the error
ezzel a háttérrel :
ezt a férfit árnyékkal
Thank you for your great post. Is it possible to send image in edit_message_text() or somehow append the image to it?
if you want to send image with a caption , you can use caption in parameter in
formdatarefer this documentation - core.telegram.org/bots/api#sendphoto
Hello
Azt szertném tudni, hogy két fotoból tudna-e egy hiteles montázst készíteni ?
Can telegram bot store data? Of yes what about if I send a photo to telegram bot will it save it forever???? Or do they delete it .