Does not contain a definition for StartReceiving(), I am making a telegram bot

Tashkulov_Umar

New member
Joined
Nov 28, 2021
Messages
1
Programming Experience
Beginner
Severity Code Description Project File Line Suppression State
Error CS1061 'TelegramBotClient' does not contain a definition for 'StopReceiving' and no accessible extension method 'StopReceiving' accepting a first argument of type 'TelegramBotClient' could be found (are you missing a using directive or an assembly reference?) TG_bot C:\Users\User\source\repos\TG_bot\Program.cs 14 Active
 
It is unacceptable to simply post an error message and nothing else. The error message is quite clear. You're calling a method that doesn't exist on line 14 of the the file Program.cs. Don't do that and the problem goes away. Where's the code that call's that method? Where's the code that you think declares that method? Give us something to work with here.
 
Back
Top Bottom