如何从网站向电报APP发送消息 [英] How to send message from Website To Telegram APP
本文介绍了如何从网站向电报APP发送消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网站上有一个共享按钮,我想向Telegram APP联系人发送特定消息(当我在Mobile中打开网站时)
I have a share button in my website and I want to send a specific message to Telegram APP contacts (when I open website in Mobile)
问题是我没有找到完整的代码,它只是在移动设备中打开了APP
The Problem is I didnt find the complete code and it just open the APP in the mobile
我的代码是:
<a href="tg://" id="telegram_share" class="mobileShare" title="inviteFriends" alt="telegram_share"></a>
如您所见,我没有在href属性中找到用于发送消息的正确命令
as you see I didnt find proper command for sending message in href property
例如,我发现了类似添加贴纸的东西:
for example I found something simillar for adding sticker like :
<a class="tgme_action_button" href="tg://addstickers?set=Saber2">Add Stickers</a>
推荐答案
iT称为URI方案 希望这可以节省别人的时间:)
iT's called URI Scheme Hope this one save someone else's time :)
<a href="tg://msg?text=your MsG!" id="telegram_share" class="mobileShare" title="inviteFriends" alt="telegram_share"></a>
正确现在它仅适用于IOS
right Now it only works on IOS
这篇关于如何从网站向电报APP发送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文