{"id":300063,"date":"2020-03-12T21:00:31","date_gmt":"2020-03-12T21:00:31","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=300063"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-03-12T21:00:31","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=300063","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 VK \u0447\u0430\u0442-\u0431\u043e\u0442\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 VkBotCore C#"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/492102\/\">\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u0434\u043b\u044f \u043b\u0435\u043d\u0438\u0432\u044b\u0445 \u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0445\u043e\u0442\u044f\u0442 \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0438\u0442\u044c \u0438 \u0438\u043c\u0435\u0442\u044c \u0434\u0435\u043b\u043e \u0441\u043e \u0432\u0441\u0435\u0439 \u00ab\u043d\u0430\u0447\u0438\u043d\u043a\u043e\u0439\u00bb.<\/p>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0433\u0440\u0443\u043f\u043f\u044b<\/h2>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043e \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0431\u043e\u0442\u0443.<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \u00ab\u0421\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430\u00bb \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-92.userapi.com\/5pv6JG1pAks-QwhaF9jdsQeDrj5hEFgzN288nQ\/ksyln1MqP9w.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0435\u0433\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Callback-API \/\/<i><a href=\"https:\/\/vk.com\/dev\/callback_api\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e Callback-API<\/a><\/i><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u00ab\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u00bb&gt;&gt;<br \/>  <a name=\"habracut\"><\/a><br \/>  <img decoding=\"async\" src=\"https:\/\/sun1-19.userapi.com\/vbn6Vnvb5Hpy1Uvu-P3-rOnN2A5v8ZV6Dmc0xg\/80u9ixmL5Do.jpg\" alt=\"image\"\/><\/p>\n<p>  &gt;&gt;\u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00bb&gt;&gt;\u00ab\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 API\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-97.userapi.com\/t-lIRf9R_gy4McuegRHrHv8kDvd9F27NseRrjw\/StY8HBWzoSo.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u043b\u044e\u0447 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0432\u044b\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e, \u043e\u043d \u043d\u0430\u043c \u0435\u0449\u0451 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-84.userapi.com\/ZC7mkj4wL1unB4o0q45c-E9wdfYZgkB8etEjzA\/nJf1Ktg0-vA.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 Callback-API, \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e API \u0438 \u0432\u044b\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043a\u043e\u043d\u0444\u0438\u0440\u043c\u0430\u0446\u0438\u0438<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-87.userapi.com\/0PMHUdiC6DYyNhS5F0JLCou5DmssA_7bQG4scA\/S18RKvL2O2Y.jpg\" alt=\"image\"\/><\/p>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \u00ab\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u00bb&gt;&gt;\u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u0431\u043e\u0442\u0430\u00bb \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-91.userapi.com\/EIkspWXGGk_ueP6FVCHIlKe5e7TiLncwfgPdAQ\/rrPEx_5df8E.jpg\" alt=\"image\"\/><\/p>\n<p>  <cut\/>  <\/p>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h2>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u043e\u0442\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u043b\u044e\u0431\u043e\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433, \u0432\u0435\u0434\u044c .NET Core \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441 \u043b\u044e\u0431\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b. \u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043e\u043c\u0435\u043d, \u0442\u0430\u043a \u043a\u0430\u043a <b>VK<\/b> \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043c\u0435\u043d\u044b \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>  \u041c\u043d\u043e\u044e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 VPS \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043d\u0430 Ubuntu 18.04<\/p>\n<p>  \u041d\u0430 \u0447\u0438\u0441\u0442\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u043e\u0442\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c .NET Core \u043d\u0435 \u043d\u0438\u0436\u0435 2.2 \u0432\u0435\u0440\u0441\u0438\u0438.<\/p>\n<p>  \u0412\u0432\u043e\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<br \/>  \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u044e\u0447\u0430 Microsoft \u0438 \u0432\u0435\u0431-\u043a\u0430\u043d\u0430\u043b\u0430:<\/p>\n<pre><code class=\"plaintext\">&gt; wget -q https:\/\/packages.microsoft.com\/config\/ubuntu\/19.04\/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb<\/code><\/pre>\n<p>  \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438:<\/p>\n<pre><code class=\"plaintext\">&gt; sudo apt-get update &gt; sudo apt-get install apt-transport-https &gt; sudo apt-get update<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0430\u043c .NET Core<br \/>  \u0414\u043b\u044f <b>Runtime<\/b> \u0432\u0435\u0440\u0441\u0438\u0438 \u0432\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"plaintext\">&gt; sudo apt-get install aspnetcore-runtime-3.1<\/code><\/pre>\n<p>  \u0414\u043b\u044f <b>Software Development Kit<\/b> \u0432\u0435\u0440\u0441\u0438\u0438:<\/p>\n<pre><code class=\"plaintext\">&gt; sudo apt-get install dotnet-sdk-3.1<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0440\u0435\u0434\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0435\u0451 \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code class=\"plaintext\">&gt; dotnet --info<\/code><\/pre>\n<p>  <\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h2>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u0431\u043e\u0442\u0443.<\/p>\n<p>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438 \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0430\u0440\u0445\u0438\u0432 \u0441\u043e \u0441\u0431\u043e\u0440\u043a\u043e\u0439.<\/p>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b <b>appsettings.json<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-21.userapi.com\/ET41DctB6BVsDjMVeSxwVeFGAoZffWT99FiJTw\/7ZfA-ErZxBY.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <b>AccessToken<\/b> \u043a\u043b\u044e\u0447 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>Confirmation<\/b> \u043a\u043b\u044e\u0447 \u043a\u043e\u043d\u0444\u0438\u0440\u043c\u0430\u0446\u0438\u0438, \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-95.userapi.com\/le3bHDOqfp3zuFyU-Chf1K04mWAJjLY63oRapw\/sRk0ZobWTu4.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c.<\/p>\n<p>  \u041a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u300a<code>cd &quot;\u043f\u0443\u0442\u044c \u043a \u043f\u0430\u043f\u043a\u0435&quot;<\/code>\u300b \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043f\u0430\u043f\u043a\u0435 \u0441\u043e \u0441\u0431\u043e\u0440\u043a\u043e\u0439 \u0438 \u0432\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n<pre><code class=\"plaintext\">&gt; dotnet vkBotCore.dll<\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u0431\u043e\u0442\u0430 \u043a \u0433\u0440\u0443\u043f\u043f\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Callback-API \u0432 \u043f\u043e\u043b\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u043c\u0435\u043d, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u043f\u0443\u0442\u0451\u043c \/api\/callback<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-20.userapi.com\/NM2uo00JZJkormq-Rsr_IK8oMN8VGqH8SOpVjg\/gpN_HCWcJUE.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0437\u0435\u043b\u0451\u043d\u0430\u044f \u0433\u0430\u043b\u043e\u0447\u043a\u0430.<\/p>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/h2>\n<p>  \u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 VkBotCore \u043a\u0430\u043a \u0447\u0430\u0442-\u0431\u043e\u0442\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u0432 \u0441\u0435\u0431\u044f \u0442\u043e\u043b\u044c\u043a\u043e 2 \u043a\u043e\u043c\u0430\u043d\u0434\u044b: \/help \u0438 \/everyone<br \/>  \u0414\u043b\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d.<\/p>\n<p>  \u041f\u043b\u0430\u0433\u0438\u043d\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043e\u043c, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043a\u0430\u043a \u043f\u043b\u0430\u0433\u0438\u043d\u0430.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-93.userapi.com\/u6aXyPez9RnXDbvcX9EXcqf5GKEJd4toIH9Aww\/BDST05U9j5o.jpg\" alt=\"image\"\/><\/p>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <b>vkBotCore.dll<\/b> \u0438\u0437 \u0441\u0431\u043e\u0440\u043a\u0438<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-24.userapi.com\/anZb7rdBwwvRJLirls8LRTAq4YfGu5BXrlkSxw\/VY1yKHlVa9A.jpg\" alt=\"image\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-23.userapi.com\/8FaghN8mcR88Pap5d9oF0PENzoiHGOdLArM5sQ\/rlKIb6ivhok.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c using \u043d\u0430 vkBotCore.Plugins \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 \u043e\u0442 Plugin<\/p>\n<pre><code class=\"cs\">using vkBotCore.Plugins;  namespace myPlugin {     public class MyFirstPlugin : Plugin     {     } }<\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 hello, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u043b\u0430 \u041f\u0440\u0438\u0432\u0435\u0442 {\u0438\u043c\u044f}<\/p>\n<pre><code class=\"cs\">using vkBotCore.Plugins; using vkBotCore.Plugins.Attributes;  namespace myPlugin {     public class MyFirstPlugin : Plugin     {         [Command]         public void Hello(CommandContext context)         {             context.Chat.SendMessage($&quot;\u041f\u0440\u0438\u0432\u0435\u0442 {context.Sender.GetMentionLine()}&quot;);         }     } }<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c plugins<br \/>  \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0432 \u043d\u0435\u0439 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-19.userapi.com\/o35pqE_GKBxQgG5zmuQSG5EuzJCrbJrdsqa_HA\/B5L9a5H4Snw.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-83.userapi.com\/vZtxfM6OBE63Z6cAOBsF7613f-K_IARAIyslXA\/zGqXSxtXO3U.jpg\" alt=\"image\"\/><\/p>\n<h3>\u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u043f\u043e \u0442\u0435\u043c\u0435<\/h3>\n<p>  <i>\u0410\u0440\u0445\u0438\u0432 \u0441\u0431\u043e\u0440\u043a\u0438: <a href=\"https:\/\/ci.appveyor.com\/api\/buildjobs\/6o2ah6gmb8t53rwe\/artifacts\/vkBotCore.zip\">vkBotCore.zip<\/a><br \/>  \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 VkBotCore: <a href=\"https:\/\/github.com\/DarkLexFirst\/vkBotCore\">github.com\/DarkLexFirst\/vkBotCore<\/a><br \/>  \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 <a href=\"https:\/\/ci.appveyor.com\/api\/buildjobs\/6o2ah6gmb8t53rwe\/artifacts\/TestPlugin%2Fbin%2FRelease%2Ftestplugin.zip\">testplugin.zip<\/a><br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/441720\/\">\u0421\u0442\u0430\u0442\u044c\u044f \u0441 \u0447\u0430\u0442-\u0431\u043e\u0442\u043e\u043c \u043d\u0430 \u0431\u0430\u0437\u0435 ASP.NET Core, VkNet C#<\/a><\/i><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/492102\/\"> https:\/\/habr.com\/ru\/post\/492102\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/492102\/\">\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u0434\u043b\u044f \u043b\u0435\u043d\u0438\u0432\u044b\u0445 \u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0445\u043e\u0442\u044f\u0442 \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0438\u0442\u044c \u0438 \u0438\u043c\u0435\u0442\u044c \u0434\u0435\u043b\u043e \u0441\u043e \u0432\u0441\u0435\u0439 \u00ab\u043d\u0430\u0447\u0438\u043d\u043a\u043e\u0439\u00bb.<\/p>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0433\u0440\u0443\u043f\u043f\u044b<\/h2>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043e \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0431\u043e\u0442\u0443.<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \u00ab\u0421\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430\u00bb \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u00bb<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/sun1-92.userapi.com\/5pv6JG1pAks-QwhaF9jdsQeDrj5hEFgzN288nQ\/ksyln1MqP9w.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0435\u0433\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Callback-API \/\/<i><a href=\"https:\/\/vk.com\/dev\/callback_api\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e Callback-API<\/a><\/i><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u00ab\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u00bb&gt;&gt;  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-300063","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/300063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=300063"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/300063\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=300063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=300063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=300063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}