Y Yoldi Member Dec 4, 2019 #1 Regards. Is it possible to send a text message with an image embedded to telegram with the library jtelegrambot? Thank you
Regards. Is it possible to send a text message with an image embedded to telegram with the library jtelegrambot? Thank you
behnam_tr Active Member Licensed User Longtime User Dec 5, 2019 #2 you can send photo with sendphoto method and with caption text Code: Copy jtb2.sendPhoto(jtb2.byId(from.id),jtb2.MediaByFile(File.DirApp&"/user_reports",filename),"your text",True,Null,null) Upvote 0
you can send photo with sendphoto method and with caption text Code: Copy jtb2.sendPhoto(jtb2.byId(from.id),jtb2.MediaByFile(File.DirApp&"/user_reports",filename),"your text",True,Null,null)
Y Yoldi Member Dec 5, 2019 #3 Regards. Thanks for the reply. It is not what you are looking for. What he asks is if it is possible to wipe an image with a text as is done with the emoji. Thank you Upvote 0
Regards. Thanks for the reply. It is not what you are looking for. What he asks is if it is possible to wipe an image with a text as is done with the emoji. Thank you
DonManfred Expert Licensed User Longtime User Dec 5, 2019 #4 I dont understand the question. Can you be more precise what exactly you are expecting? sendPhoto is the correct command to send a photo to a chat. And this is how i interpret your question from #1 (or the Threadtitle) Last edited: Dec 5, 2019 Upvote 0
I dont understand the question. Can you be more precise what exactly you are expecting? sendPhoto is the correct command to send a photo to a chat. And this is how i interpret your question from #1 (or the Threadtitle)
DonManfred Expert Licensed User Longtime User Dec 6, 2019 #6 I still do not understand. Describe it clearly (in WORDS) Doesn´t the sendpicture with a text look like this? Edit to add: The gray "Pagar with a $ sum"... Looks like this is an Inlinekeyboard-button. Upvote 0
I still do not understand. Describe it clearly (in WORDS) Doesn´t the sendpicture with a text look like this? Edit to add: The gray "Pagar with a $ sum"... Looks like this is an Inlinekeyboard-button.
Y Yoldi Member Dec 6, 2019 #7 Regards. What you want is to be able to reduce a text with an image plus text plus image etc. Text + image + text + image ..... Thank you Upvote 0
Regards. What you want is to be able to reduce a text with an image plus text plus image etc. Text + image + text + image ..... Thank you
DonManfred Expert Licensed User Longtime User Dec 6, 2019 #8 Yoldi said: Text + image + text + image ..... Click to expand... i dont think this is possible. At least i don´t know how such message works. You need to search google, stackoverflow or telegram documentation to find out how it works (sample code). I then can help you rebuild it. Upvote 0
Yoldi said: Text + image + text + image ..... Click to expand... i dont think this is possible. At least i don´t know how such message works. You need to search google, stackoverflow or telegram documentation to find out how it works (sample code). I then can help you rebuild it.
DonManfred Expert Licensed User Longtime User Dec 7, 2019 #9 Yoldi said: Text + image + text + image Click to expand... You need to send two messages. Each have one image plus text. It works using MARKDOWN. But only one image. At least i did not get it working with two or more images plus text. Code: Copy jtb.sendMessage(jtb.byId(chat.Id),$"[](http://snapshots.basic4android.de/b4arulez.gif) B4X Rules!."$,"MARKDOWN",False,False,0,Null) Upvote 0
Yoldi said: Text + image + text + image Click to expand... You need to send two messages. Each have one image plus text. It works using MARKDOWN. But only one image. At least i did not get it working with two or more images plus text. Code: Copy jtb.sendMessage(jtb.byId(chat.Id),$"[](http://snapshots.basic4android.de/b4arulez.gif) B4X Rules!."$,"MARKDOWN",False,False,0,Null)