Coder Social home page Coder Social logo

Comments (13)

MrRoundRobin avatar MrRoundRobin commented on May 13, 2024

Which VS Version?

I think it's because i used C# 6 features like Expression bodies

from telegram.bot.

fizmhd avatar fizmhd commented on May 13, 2024

Hi,
I am using visual studio 2013
i have 141 Errors
attached screen shots..

capture

from telegram.bot.

MrRoundRobin avatar MrRoundRobin commented on May 13, 2024

Can you try VS 2015?

from telegram.bot.

spoofi avatar spoofi commented on May 13, 2024

I just tried to compile the project in visual studio 2015 => Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped.

@fizmhd I think, you just need use Visual Studio 2015, because project contains C# 6 features :)

from telegram.bot.

sohrablou avatar sohrablou commented on May 13, 2024

Hi,
Excuse me Mr Round Robin.
I am Persian language and Iranian them. Please let me help her in Farsi.

سلام. دوست عزیز شما برای استفاده از این ای.پی.آی , باید از ویژوال استادیو 2015 به همراه دات نت فریم ورک 4.5 استفاده کنید.
بهترین راه حل برای استفاده از این ای.پی.آی استفاده از دستور زیر در کامندر خود ویژوال استادیو هستش.
چون نیازمندیهاش رو خودش نصب میکنه و در صورتی که آپدیت بشه راحت میتونی با جابجایی یه فایل دی.ال.ال سریعتر کارت رو پیش ببری.

Install as NuGet package:

Install-Package Telegram.Bot

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

from telegram.bot.

marjanjavid avatar marjanjavid commented on May 13, 2024

Hi,
Its about 10 hours that my bots are not working.I have been installed telegram.bot.dll and other categories from Mr.Round Robin Nugets post and use webhook method to receive and answer for my bots.
but unfortunately unexpectedly all my bots were stopped several hours ago.I checked my the SSL ,It was ok.I dont realy undrestand the problem

from telegram.bot.

MrRoundRobin avatar MrRoundRobin commented on May 13, 2024

so, do you have any errors, exceptions or other logs? can you confirm that your webhook receives any requests from telegram?

has this anything to do with this issue?

from telegram.bot.

Gorniv avatar Gorniv commented on May 13, 2024

from https://telegram.me/pwrtelegram

Hello.
Please reset the webhooks of all of your bots, because they were all reset by the telegram bot API.
This request applies both to bots that use the official bot API and bots that use the PWRTelegram bot API. You do not need to reset the webhook if you are using long polling (getUpdates).
The webhooks were probably reset because Telegram's making some server side changes or simply messed up the webhook database.

Share this message around to all of your groups and channels, please.

from telegram.bot.

marjanjavid avatar marjanjavid commented on May 13, 2024

hello MrRoundRobin
I dont receive any webhook request on my server from telegram so I dont get any errors.
I have reset one of my bots token ,actually i delete my bot and again create a bot with the same username , but still it doesnt work.
Mr Gorniv did you test it ?i thenk it doesnt work

from telegram.bot.

MrRoundRobin avatar MrRoundRobin commented on May 13, 2024

so if you have set the webhook correctly and don't get updates that is a problem is not related to the library. maybe check this faq and ping BotSupport

from telegram.bot.

marjanjavid avatar marjanjavid commented on May 13, 2024

Thanks for your reply.
yes it was not related to the library.
I had ping BotSupport and after several hours they replied me :
"Hi, we had an issue last night that caused this problems If you call again setWebhook, it should be solved."
I revoke my tokens and set them again and the problem solved easily.It seems it was not necessary to revoke but i have done that before getting BotSupport help.

from telegram.bot.

lokeshpanwar777 avatar lokeshpanwar777 commented on May 13, 2024

Hi MrRoundRobin, I try many times but unable to ping the bot to my code part, but earlier it was working fine now it's not working.
My code is in c# vs19.

from telegram.bot.

sycobra avatar sycobra commented on May 13, 2024

Anyone can help with this? Everything in the code is correct but still not getting a response from the bot? I check the windows firewall and Telegram.dll and bot.dll and every solution but still not working?

using System;
using Telegram.Bot;
using Telegram.Bot.Types.Enums;

   namespace HelloBot
{
    class Program
    {

    static string token= "******";
  
        static TelegramBotClient Bot = new TelegramBotClient(token);

    static void Main(string[] args)
    {
        Bot.StartReceiving();
        Bot.OnMessage += botmessage;
       
        Console.ReadLine();
    }
        

    private static async void botmessage(object sender, Telegram.Bot.Args.MessageEventArgs e)
    {
        

        if (e.Message.Type == MessageType.Text)
        {
            await Bot.SendTextMessageAsync(e.Message.Chat.Id, "Hello "+e.Message.Chat.Username);

            Console.WriteLine(e.Message.ToString());
         
        }
    }

    }

}

from telegram.bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.