در نوشتن بات با استفاده از وب فرم امکان استفاده ار Invoke نمی باشد و خطا می دهد
void runBot()
{
bot =new Telegram.Bot.TelegramBotClient(Token);
this.Invoke( new Action(() =>
{
Response.Redirect("");
}));
}
متن خطا :
Severity Code Description Project File Line Suppression State
Error CS0103 The name 'Invoke' does not exist in the current context WebApplication5 C:\Users\radman\Documents\Visual Studio 2017\Projects\WebApplication5\WebApplication5\Etesal.aspx.cs 34 Active
سلام
در سایت ها از webhook استفاده میشه و پیشنهاد برای ربات در سایت از این استفاده کنید
اون آموزش برای کنسول است