Any way to open an app from Telegram bot?
I've coded a Telegram bot (python-telegram-bot) and I would like to know if there's a way to open an app from the bot.
To be more accurate, the bot searches torrent links and the original idea was to send that links directly to qBitTorrent in the user's computer but unfortunately I'm stuck in that step, so for the moment I though about give the user the magnet link so it can be pasted in the qBitTorrent app. The thing is that it would great to automaticly open the app from the bot.
Thanks in advance!
python-3.x bittorrent python-telegram-bot
add a comment |
I've coded a Telegram bot (python-telegram-bot) and I would like to know if there's a way to open an app from the bot.
To be more accurate, the bot searches torrent links and the original idea was to send that links directly to qBitTorrent in the user's computer but unfortunately I'm stuck in that step, so for the moment I though about give the user the magnet link so it can be pasted in the qBitTorrent app. The thing is that it would great to automaticly open the app from the bot.
Thanks in advance!
python-3.x bittorrent python-telegram-bot
Why do you want that? What you expected to do is a very malicious action...
– Geno Chen
Nov 24 '18 at 11:43
It really wasn't my intention but I see the point. Thanks.
– n40k1
Nov 26 '18 at 9:13
@n40k1 Maybe you can make the magnet links "clickable"? Like a pasted URL which will take you to the default browser once you click on it. Or is this working already and you really just wanted the app to automatically open?
– finefoot
Dec 3 '18 at 23:48
add a comment |
I've coded a Telegram bot (python-telegram-bot) and I would like to know if there's a way to open an app from the bot.
To be more accurate, the bot searches torrent links and the original idea was to send that links directly to qBitTorrent in the user's computer but unfortunately I'm stuck in that step, so for the moment I though about give the user the magnet link so it can be pasted in the qBitTorrent app. The thing is that it would great to automaticly open the app from the bot.
Thanks in advance!
python-3.x bittorrent python-telegram-bot
I've coded a Telegram bot (python-telegram-bot) and I would like to know if there's a way to open an app from the bot.
To be more accurate, the bot searches torrent links and the original idea was to send that links directly to qBitTorrent in the user's computer but unfortunately I'm stuck in that step, so for the moment I though about give the user the magnet link so it can be pasted in the qBitTorrent app. The thing is that it would great to automaticly open the app from the bot.
Thanks in advance!
python-3.x bittorrent python-telegram-bot
python-3.x bittorrent python-telegram-bot
asked Nov 14 '18 at 11:04
n40k1n40k1
91
91
Why do you want that? What you expected to do is a very malicious action...
– Geno Chen
Nov 24 '18 at 11:43
It really wasn't my intention but I see the point. Thanks.
– n40k1
Nov 26 '18 at 9:13
@n40k1 Maybe you can make the magnet links "clickable"? Like a pasted URL which will take you to the default browser once you click on it. Or is this working already and you really just wanted the app to automatically open?
– finefoot
Dec 3 '18 at 23:48
add a comment |
Why do you want that? What you expected to do is a very malicious action...
– Geno Chen
Nov 24 '18 at 11:43
It really wasn't my intention but I see the point. Thanks.
– n40k1
Nov 26 '18 at 9:13
@n40k1 Maybe you can make the magnet links "clickable"? Like a pasted URL which will take you to the default browser once you click on it. Or is this working already and you really just wanted the app to automatically open?
– finefoot
Dec 3 '18 at 23:48
Why do you want that? What you expected to do is a very malicious action...
– Geno Chen
Nov 24 '18 at 11:43
Why do you want that? What you expected to do is a very malicious action...
– Geno Chen
Nov 24 '18 at 11:43
It really wasn't my intention but I see the point. Thanks.
– n40k1
Nov 26 '18 at 9:13
It really wasn't my intention but I see the point. Thanks.
– n40k1
Nov 26 '18 at 9:13
@n40k1 Maybe you can make the magnet links "clickable"? Like a pasted URL which will take you to the default browser once you click on it. Or is this working already and you really just wanted the app to automatically open?
– finefoot
Dec 3 '18 at 23:48
@n40k1 Maybe you can make the magnet links "clickable"? Like a pasted URL which will take you to the default browser once you click on it. Or is this working already and you really just wanted the app to automatically open?
– finefoot
Dec 3 '18 at 23:48
add a comment |
2 Answers
2
active
oldest
votes
A bot can't open an external app
Thank you, I'll look for another solution.
– n40k1
Nov 26 '18 at 9:14
add a comment |
Generally speaking, you're right: one Android app is able to start another app.
However, in this case, this is not your app, we're talking about, but you want another app (Telegram) to open another app. So you have to rely on what that app (Telegram) provides you with their API.
You can have a look at Telegram's bot API at https://core.telegram.org/bots/api There is no method to execute commands or open another app. So it will not be possible for you to open another app with your Telegram bot.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53298734%2fany-way-to-open-an-app-from-telegram-bot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
A bot can't open an external app
Thank you, I'll look for another solution.
– n40k1
Nov 26 '18 at 9:14
add a comment |
A bot can't open an external app
Thank you, I'll look for another solution.
– n40k1
Nov 26 '18 at 9:14
add a comment |
A bot can't open an external app
A bot can't open an external app
answered Nov 24 '18 at 11:22
91DarioDev91DarioDev
714316
714316
Thank you, I'll look for another solution.
– n40k1
Nov 26 '18 at 9:14
add a comment |
Thank you, I'll look for another solution.
– n40k1
Nov 26 '18 at 9:14
Thank you, I'll look for another solution.
– n40k1
Nov 26 '18 at 9:14
Thank you, I'll look for another solution.
– n40k1
Nov 26 '18 at 9:14
add a comment |
Generally speaking, you're right: one Android app is able to start another app.
However, in this case, this is not your app, we're talking about, but you want another app (Telegram) to open another app. So you have to rely on what that app (Telegram) provides you with their API.
You can have a look at Telegram's bot API at https://core.telegram.org/bots/api There is no method to execute commands or open another app. So it will not be possible for you to open another app with your Telegram bot.
add a comment |
Generally speaking, you're right: one Android app is able to start another app.
However, in this case, this is not your app, we're talking about, but you want another app (Telegram) to open another app. So you have to rely on what that app (Telegram) provides you with their API.
You can have a look at Telegram's bot API at https://core.telegram.org/bots/api There is no method to execute commands or open another app. So it will not be possible for you to open another app with your Telegram bot.
add a comment |
Generally speaking, you're right: one Android app is able to start another app.
However, in this case, this is not your app, we're talking about, but you want another app (Telegram) to open another app. So you have to rely on what that app (Telegram) provides you with their API.
You can have a look at Telegram's bot API at https://core.telegram.org/bots/api There is no method to execute commands or open another app. So it will not be possible for you to open another app with your Telegram bot.
Generally speaking, you're right: one Android app is able to start another app.
However, in this case, this is not your app, we're talking about, but you want another app (Telegram) to open another app. So you have to rely on what that app (Telegram) provides you with their API.
You can have a look at Telegram's bot API at https://core.telegram.org/bots/api There is no method to execute commands or open another app. So it will not be possible for you to open another app with your Telegram bot.
answered Dec 2 '18 at 21:05
finefootfinefoot
2,78541835
2,78541835
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53298734%2fany-way-to-open-an-app-from-telegram-bot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Why do you want that? What you expected to do is a very malicious action...
– Geno Chen
Nov 24 '18 at 11:43
It really wasn't my intention but I see the point. Thanks.
– n40k1
Nov 26 '18 at 9:13
@n40k1 Maybe you can make the magnet links "clickable"? Like a pasted URL which will take you to the default browser once you click on it. Or is this working already and you really just wanted the app to automatically open?
– finefoot
Dec 3 '18 at 23:48