Any way to open an app from Telegram bot?










1















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!










share|improve this question






















  • 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















1















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!










share|improve this question






















  • 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













1












1








1








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!










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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












2 Answers
2






active

oldest

votes


















1














A bot can't open an external app






share|improve this answer























  • Thank you, I'll look for another solution.

    – n40k1
    Nov 26 '18 at 9:14


















0














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.






share|improve this answer






















    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
    );



    );













    draft saved

    draft discarded


















    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









    1














    A bot can't open an external app






    share|improve this answer























    • Thank you, I'll look for another solution.

      – n40k1
      Nov 26 '18 at 9:14















    1














    A bot can't open an external app






    share|improve this answer























    • Thank you, I'll look for another solution.

      – n40k1
      Nov 26 '18 at 9:14













    1












    1








    1







    A bot can't open an external app






    share|improve this answer













    A bot can't open an external app







    share|improve this answer












    share|improve this answer



    share|improve this answer










    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

















    • 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













    0














    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.






    share|improve this answer



























      0














      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.






      share|improve this answer

























        0












        0








        0







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 2 '18 at 21:05









        finefootfinefoot

        2,71031834




        2,71031834



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Top Tejano songwriter Luis Silva dead of heart attack at 64

            政党

            天津地下鉄3号線