[英]How to share a picture and description with a specific person with an ID in Telegram with Android?
[英]Share text with picture to telegram
我想在 Android 中创建一个应用程序,我想将带有图片的文本共享到电报,但我不希望图片和文本分开。 我不知道该怎么做。
希望它工作正常,我也试过。
$.sendPhoto(image_url,{caption : 'i am attached text with image'});
//bot.sendPhoto(chatId,image_url,{caption : 'i am attached text with image'}); /* TRY these according to you.
或者,如果你想从 Telegram rest api 发送它,那么调用这个 api:
API URL : 'https://api.telegram.org/bot'+token+'/sendPhoto?
chat_id='+chatID+'&photo='+imageSrc+'&caption='+(message ?message : '');
METHOD : GET
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.