You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An Activity is an object representing certain activities or processes that warrant either providing additional data to the current Context (such as access to the underlying HttpContext for a web request, or access to network information in an MTProto handler) or warrant rich auditing.
The Activity property of Context can be used to access the current activity, if there is one.
publicasyncTaskTestCommand(Contextc,EventArgse){if(c.ActivityisUpdateActivityua){HTMLmsg=ua.UpdateReceivedViaswitch{UpdateReceivedVia.Polling=>"We are polling",UpdateReceivedVia.Webhook=>"We are using webhooks",
_ =>"We can't tell"};awaitc.SendReply(msg);}}