locked
Telegram Bot API RRS feed

  • Question

  • i want to install (Telegram Bot API) from "nuget.org" but when i install it from Package Manager Console in visual studio i have this error

    Install-Package : 'Telegram.Bot' already has a dependency defined for 'Microsoft.AspNet.WebApi.Client'.
    At line:1 char:1
    + Install-Package Telegram.Bot
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
     

    please help me to install Telegram Bot API

    Thursday, March 17, 2016 8:35 PM

Answers

  • tank you for your answer but

    This problem arises with older version of nuget. Update nuget PM, 2.8.60723.765 is current version, Look for the latest for VS 2013

    i do that and i dont have any error and problem

    1-unistall nuget from -->unistall older version

    2-Restrt

    3-install nuget  2.8.60723.765 is current version, Look for the latest for VS 2013 from tool-->Extensions and Updates

    4-restart visual studioit is work for me

    • Proposed as answer by Kristin Xie Tuesday, March 22, 2016 12:58 AM
    • Marked as answer by DotNet Wang Tuesday, March 29, 2016 1:07 AM
    Friday, March 18, 2016 12:26 PM

All replies

  • Hi homayoun,

    Since Telegram Bot API  is third-party API, for a better support, I would suggest you ask in their official website forum.

    By the way, I will try my best to help you.

    Here is what I tested. Please note the line that I marked red.

    Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Client (≥ 5.2.3)'.
    Attempting to resolve dependency 'Newtonsoft.Json (>= 8.0.2)'.

    Here is also the Nuget page. Note the Dependencies section.

    https://www.nuget.org/packages/Telegram.Bot/

    Best regards,

    Kristin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, March 18, 2016 3:55 AM
  • tank you for your answer but

    This problem arises with older version of nuget. Update nuget PM, 2.8.60723.765 is current version, Look for the latest for VS 2013

    i do that and i dont have any error and problem

    1-unistall nuget from -->unistall older version

    2-Restrt

    3-install nuget  2.8.60723.765 is current version, Look for the latest for VS 2013 from tool-->Extensions and Updates

    4-restart visual studioit is work for me

    • Proposed as answer by Kristin Xie Tuesday, March 22, 2016 12:58 AM
    • Marked as answer by DotNet Wang Tuesday, March 29, 2016 1:07 AM
    Friday, March 18, 2016 12:26 PM
  • Hi homayoun ,

    Glad to hear you have worked it out. Based on your description, the main issue is Nuget version. Thanks for sharing your solution here. Now please close this issue by marking your reply as an answer. Thanks for your cooperation and support.

    Have a nice day!

    Kristin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, March 22, 2016 1:04 AM