{"id":41315,"date":"2020-02-10T12:09:34","date_gmt":"2020-02-10T09:09:34","guid":{"rendered":"https:\/\/prohoster.info\/blog\/blog_prohoster\/stroim-telegram-bot-v-yandeks-oblake"},"modified":"2020-02-10T12:09:34","modified_gmt":"2020-02-10T09:09:34","slug":"stroim-telegram-bot-v-yandeks-oblake","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/stroim-telegram-bot-v-yandeks-oblake","title":{"rendered":"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/4a758744e4fc6bc797d270fa1bc42ef3.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nMa ma a mai nap sor\u00e1n h\u00e1zi anyagokb\u00f3l \u00f6ssze fogunk \u00e1ll\u00edtani egy <noindex><a rel=\"nofollow\" href=\"https:\/\/cloud.yandex.ru\/\"><i>Yandex Felh\u0151ben<\/i><\/a><\/noindex> <i>Telegram-botot<\/i> a <noindex><a rel=\"nofollow\" href=\"https:\/\/cloud.yandex.ru\/services\/functions\"><i>Yandex Cloud Functions<\/i><\/a><\/noindex> SysWOW64 <i>Yandex-funkci\u00f3k<\/i> \u2014 r\u00f6viden) \u00e9s <noindex><a rel=\"nofollow\" href=\"https:\/\/cloud.yandex.ru\/services\/storage\"><i>Yandex Object Storage<\/i><\/a><\/noindex> SysWOW64 <i>Objektumt\u00e1rol\u00f3<\/i> \u2014 vil\u00e1gos kedv\u00e9\u00e9rt). A k\u00f3d a k\u00f6vetkez\u0151 lesz <i>Node.js<\/i>. Azonban van egy pik\u00e1ns k\u00f6r\u00fclm\u00e9ny \u2014 egy szervezet, mondjuk \u00fagy, hogy <i>RosKomCenz\u00far<\/i> (a cenz\u00fara a 29. cikk szerint tilos az Orosz F\u00f6der\u00e1ci\u00f3 Alkotm\u00e1ny\u00e1ban), nem engedi az orosz internetszolg\u00e1ltat\u00f3knak, hogy lek\u00e9rdez\u00e9seket k\u00fcldjenek a <i>Telegram API<\/i> c\u00edmen: <code>https:\/\/api.telegram.org\/<\/code>. Nos, mi nem is fogjuk \u2014 ha nincs, h\u00e1t nincs. V\u00e9g\u00fcl is a mi szersz\u00e1mosl\u00e1d\u00e1nkban ott van a nevezett <i>webhookok<\/i> \u2014 ezek seg\u00edts\u00e9g\u00e9vel nem k\u00fcld\u00fcnk lek\u00e9rdez\u00e9seket egy konkr\u00e9t c\u00edmre, hanem csak v\u00e1laszolunk a saj\u00e1t k\u00e9r\u00e9s\u00fcnkkel b\u00e1rmilyen k\u00e9rd\u00e9sre, amit kapunk. Teh\u00e1t, mint Odessz\u00e1ban \u2014 k\u00e9rd\u00e9ssel v\u00e1laszolunk a k\u00e9rd\u00e9sre. Ez\u00e9rt <i>Telegram API<\/i> a k\u00f3dunkban nem fog szerepelni.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\n<b class=\"spoiler_title\">Megjegyz\u00e9s<\/b><i>A cikkben eml\u00edtett \u00e1llami szervezetek nevei fikt\u00edvek, \u00e9s b\u00e1rmilyen egybees\u00e9s val\u00f3di szervezetek nev\u00e9vel v\u00e9letlen. <\/i> <\/p>\n<p>Teh\u00e1t, k\u00e9sz\u00edt\u00fcnk egy botot, amely ell\u00e1t minket okos gondolatokkal. Pont olyat, mint a k\u00e9pen:<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/t.me\/SmartThoughtsBot\"><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/6b7aca248999621a20f8a0ec29e75c75.png\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<p>Ki tudod pr\u00f3b\u00e1lni \u2014 itt van a neve: <b><i>@SmartThoughtsBot<\/i><\/b>. \u00c9szrevetted a gombot? <i>\u201eAlisa k\u00e9szs\u00e9ge\u201d<\/i>? \u042d\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0431\u043e\u0442 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0432\u043e\u0435\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u043c \u00ab\u043a\u043e\u043c\u043f\u0430\u043d\u044c\u043e\u043d\u043e\u043c\u00bb \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u043e\u0433\u043e <i>Alisa k\u00e9szs\u00e9ge<\/i>, vagyis ugyanazokat a funkci\u00f3kat l\u00e1tja el, mint <i>Alisa k\u00e9szs\u00e9ge<\/i> , \u00e9s lehet, hogy \u0151k b\u00e9k\u00e9sen egy\u00fctt tudnak l\u00e9tezni, rekl\u00e1mozva egym\u00e1st. Arr\u00f3l, hogyan hozz l\u00e9tre egy <i>Okos Gondolatok k\u00e9szs\u00e9get<\/i> a cikkben van sz\u00f3 <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/465275\/\"><b><i>Alisa megtanul egy k\u00e9szs\u00e9get<\/i><\/b><\/a><\/noindex>. Jelenleg (miut\u00e1n n\u00e9h\u00e1ny m\u00f3dos\u00edt\u00e1st hajtottunk v\u00e9gre a fent eml\u00edtett cikk k\u00f6zz\u00e9t\u00e9tele ut\u00e1n) ezen a smartphone-on ez a <i>k\u00e9szs\u00e9g<\/i> k\u00f6r\u00fclbel\u00fcl \u00edgy fog kin\u00e9zni:<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/alice.ya.ru\/s\/f785af07-4578-4a6b-95ae-485bd803ae20\"><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/e92c340f8d947ba9252e0fcab0511ce6.png\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<h2>Bot l\u00e9trehoz\u00e1sa<\/h2>\n<p>\nSzeretn\u00e9m, ha ez a bemutat\u00f3 mindenki sz\u00e1m\u00e1ra hasznos lenne, bele\u00e9rtve a kezd\u0151 \u201ebott\u00f6rt\u00e9neteket\u201d is. Ez\u00e9rt ebben a r\u00e9szben r\u00e9szletesen le\u00edrom, hogyan is k\u00e9sz\u00edthet\u00fcnk <i>Telegram<\/i>a botok. Akinek erre az inform\u00e1ci\u00f3ra nincs sz\u00fcks\u00e9ge, l\u00e9pjen \u00e1t a k\u00f6vetkez\u0151 szakaszokra. <\/p>\n<p>Megnyitjuk az <i>Telegaram alkalmaz\u00e1st<\/i>, h\u00edvjuk a botok apj\u00e1t (mindenkinek van apja) \u2014 <b><i>@BotFather<\/i><\/b> \u2014 \u00e9s el\u0151sz\u00f6r adjunk neki parancsot \/help, hogy felfriss\u00edts\u00fck az eml\u00e9kezet\u00fcnket, mit is tehet\u00fcnk. Jelenleg a k\u00f6vetkez\u0151 parancs fog \u00e9rdekelni <i>\/newbot<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/12a0e84dd712e0c74dee0463f1b44e74.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nMivel a le\u00edrt bot meg van m\u00e1r, bemutat\u00f3 c\u00e9lokra r\u00f6vid id\u0151re l\u00e9trehozok egy m\u00e1sik botot (azt\u00e1n elt\u00e1vol\u00edtom). A nev\u00e9t adom: <i>DemoHabrBot<\/i>. A nevek (<i>username<\/i>) minden telegram-botnak a k\u00f6vetkez\u0151 sz\u00f3val kell v\u00e9gz\u0151dnie <i>bot<\/i>, p\u00e9ld\u00e1ul: <i>MyCoolBot<\/i> vagy <i>my_cool_bot<\/i> \u2014 ez botoknak sz\u00f3l. De el\u0151sz\u00f6r adjunk a botnak nevet (<i>name<\/i>) \u2014 ez az embereknek sz\u00f3l. A n\u00e9v lehet b\u00e1rmilyen nyelv\u0171, tartalmazhat sz\u00f3k\u00f6z\u00f6ket, nem musz\u00e1j befejez\u0151dnie a sz\u00f3val <i>bot<\/i>, \u00e9s m\u00e9g egyedi sem kell, hogy legyen. Ebben a p\u00e9ld\u00e1ban ezt a botot <i>Demo Habr-nak neveztem el<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/682ecf64724cabcfef96639d6de87521.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nMost v\u00e1lasszuk ki a botunk nev\u00e9t (<i>username<\/i>, ami a botok sz\u00e1m\u00e1ra k\u00e9sz\u00fclt). H\u00edvjuk \u0151t <i>DemoHabrBot<\/i>. Minden, ami a bot nev\u00e9re vonatkozik (<i>name<\/i>) egy\u00e1ltal\u00e1n nem vonatkozik a nev\u00e9re \u2014 <i>username<\/i> (vagy vonatkozik, de pont ellenkez\u0151leg). Miut\u00e1n sikeresen l\u00e9trehoztuk a bot egyedi nev\u00e9t, m\u00e1solnunk kell \u00e9s meg kell \u0151rizn\u00fcnk (szigor\u00faan titokban!) a k\u00e9perny\u0151n piros ny\u00edllal megjelen\u00edtett tokent. Ezzel fogjuk k\u00e9s\u0151bb be\u00e1ll\u00edtani a <i>Telegram<\/i>a webhookunkra <i>Yandex-funkci\u00f3hoz<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/78254946c9f763d212a1952bac6c706f.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nMost adjuk ki a parancsot a botok atyj\u00e1r\u00f3l: <i>\/mybots<\/i>, \u00e9s \u0151 megmutatja nek\u00fcnk a l\u00e9trehozott botjaink list\u00e1j\u00e1t. Hagyjuk most pihenni a friss botunkat <i>Demo Habr-nak neveztem el<\/i> (ami az\u00e9rt j\u00f6tt l\u00e9tre, hogy megmutassa, hogyan lehet botokat l\u00e9trehozni, de ma m\u00e9g m\u00e1s demonstr\u00e1ci\u00f3s c\u00e9lokra is felhaszn\u00e1ljuk), \u00e9s n\u00e9zz\u00fck meg a botot <i>Okos Gondolatok<\/i> (<i>@SmartThoughtsBot<\/i>). Kattintsunk a botok list\u00e1j\u00e1ban a nev\u00e9re.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/98434725cb0d7441ec5f2552b0b508a8.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nItt be\u00e1ll\u00edthatjuk a botunkat. A <i>Szerkeszt\u00e9s\u2026<\/i> gombra kattintva a k\u00fcl\u00f6nb\u00f6z\u0151 opci\u00f3k szerkeszt\u00e9s\u00e9re l\u00e9p\u00fcnk. P\u00e9ld\u00e1ul, ha eltessz\u00fck a gombot <i>N\u00e9v szerkeszt\u00e9se<\/i> , megv\u00e1ltoztathatjuk a bot nev\u00e9t, mondjuk, a <i>Okos Gondolatok<\/i>, \u00edrjuk \u00e1t <i>Zavart \u00d6tletek<\/i>. <i>Botpic<\/i> \u2014 ez a bot avat\u00e1rja, legal\u00e1bb <i>150 x 150 px<\/i>. <i>Le\u00edr\u00e1s<\/i> \u2014 ez egy r\u00f6vid le\u00edr\u00e1s, amit a felhaszn\u00e1l\u00f3 l\u00e1t, amikor el\u0151sz\u00f6r elind\u00edtja a botot, v\u00e1laszk\u00e9nt a k\u00e9rd\u00e9sre: <i>Mit tud csin\u00e1lni ez a bot?<\/i> <i>R\u00f3lunk<\/i> \u2014 m\u00e9g r\u00f6videbb le\u00edr\u00e1s, amely a bot linkj\u00e9vel egy\u00fctt ker\u00fcl \u00e1tad\u00e1sra (<code>https:\/\/t.me\/SmartThoughtsBot<\/code>) vagy amikor a r\u00f3la sz\u00f3l\u00f3 inform\u00e1ci\u00f3t n\u00e9zik.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/f15ba92be1bfea827273f79616bd2a3a.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nCsak a parancsokat kell be\u00e1ll\u00edtanunk. Ehhez kattintson a <i>Parancsok szerkeszt\u00e9se<\/i>gombra. A felhaszn\u00e1l\u00f3i gyakorlat standardiz\u00e1l\u00e1s\u00e1hoz <i>Telegram<\/i> aj\u00e1nlott mindig k\u00e9t parancsot haszn\u00e1lni: <i>\/start<\/i> \u00e9s <i>\/help<\/i>, \u00e9s ha a botnak be\u00e1ll\u00edt\u00e1sokra van sz\u00fcks\u00e9ge \u2014 egy tov\u00e1bbi parancsot \/be\u00e1ll\u00edt\u00e1sok. A botunk egyszer\u0171, mint a labda, ez\u00e9rt neki egyel\u0151re nincsenek sz\u00fcks\u00e9ges be\u00e1ll\u00edt\u00e1sai. Megadjuk az els\u0151 k\u00e9t parancsot, amelyeket k\u00e9s\u0151bb a k\u00f3dban feldolgozunk. Most, ha a felhaszn\u00e1l\u00f3 a bemeneti mez\u0151be be\u00edr egy perjelet (\/) a parancsok list\u00e1ja megjelenik a gyors v\u00e1laszt\u00e1shoz. Minden \u00fagy van, ahogy a k\u00e9pen: bal oldalon, a bot aty\u00e1n kereszt\u00fcl \u00e1ll\u00edtjuk be a parancsokat; jobbra, ezek a parancsok m\u00e1r el\u00e9rhet\u0151k a felhaszn\u00e1l\u00f3k sz\u00e1m\u00e1ra a botunkban.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/b536b5fe7b8aad3d68877a7693ea0e6f.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<h2>Yandex-funkci\u00f3<\/h2>\n<p>\nMost, hogy a botunk l\u00e9trej\u00f6tt, l\u00e9pj\u00fcnk a <i>Yandex.Cloud-hoz<\/i>, hogy l\u00e9trehozzunk egy funkci\u00f3t, amely v\u00e9grehajtja botunk k\u00f3dj\u00e1t. Ha m\u00e9g nem dolgozt\u00e1l a <i>Yandex.Cloud-dal<\/i> , olvasd el az anyagot <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/464739\/\"><b><i>Al\u00edz a Bitrix orsz\u00e1g\u00e1ban<\/i><\/b><\/a><\/noindex>, majd \u2014 <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/440374\/\"><b><i>A Yandex-funkci\u00f3k e-maileket k\u00fcldenek<\/i><\/b><\/a><\/noindex>. Szinte biztos vagyok benne, hogy ez a k\u00e9t viszonylag r\u00f6vid cikk elegend\u0151 lesz sz\u00e1modra a t\u00e9ma alapjainak meg\u00e9rt\u00e9s\u00e9hez.<\/p>\n<p>Teh\u00e1t a konzolban <i>a Yandex.Cloud-ban<\/i> a bal oldali navig\u00e1ci\u00f3s men\u00fcben v\u00e1laszthatjuk a <i>Cloud Functions<\/i>, majd r\u00e1kattintunk a <i>Funkci\u00f3 l\u00e9trehoz\u00e1sa<\/i>. Adjunk neki nevet, \u00e9s k\u00e9sz\u00edts\u00fcnk egy r\u00f6vid le\u00edr\u00e1st magunknak.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/67f313c60481c5ef84af8a28b4934621.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nA gomb megnyom\u00e1sa ut\u00e1n <i>L\u00e9trehoz\u00e1s<\/i> \u00e9s n\u00e9h\u00e1ny m\u00e1sodperces v\u00e1rakoz\u00e1s ut\u00e1n az \u00faj funkci\u00f3 megjelenik az \u00f6sszes funkci\u00f3 list\u00e1j\u00e1ban. Kattintsunk a nev\u00e9re \u2014 ez \u00e1tir\u00e1ny\u00edt benn\u00fcnket a <i>\u00c1ttekint\u00e9s<\/i> a funkci\u00f3nkr\u00f3l. Itt be kell kapcsolni (<i>Be<\/i>) a kapcsol\u00f3t <i>Nyilv\u00e1nos funkci\u00f3<\/i>, hogy az el\u00e9rhet\u0151 legyen a k\u00fcls\u0151 (a <i>a Yandex.Cloud-ban<\/i>) vil\u00e1g sz\u00e1m\u00e1ra, \u00e9s az <i>H\u00edv\u00e1s link<\/i> \u00e9s <i>Azonos\u00edt\u00f3<\/i> \u2014 titokban tartani mindenki el\u0151l, kiv\u00e9ve saj\u00e1t mag\u00e1t \u00e9s a Telegramot, hogy a funkci\u00f3t ne tudj\u00e1k aktiv\u00e1lni k\u00fcl\u00f6nf\u00e9le csal\u00f3k.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/3ba45d357965d567ba33ab0ee65d2eb4.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nMost a bal oldali men\u00fc seg\u00edts\u00e9g\u00e9vel l\u00e9pj\u00fcnk a <i>Funkci\u00f3szerkeszt\u0151<\/i> . Jelenleg egy r\u00f6vid id\u0151re f\u00e9lretehetj\u00fck a <i>Okos Gondolatok<\/i>, \u00e9s k\u00e9sz\u00edts\u00fcnk egy minim\u00e1lis sablon funkci\u00f3t, hogy ellen\u0151rizz\u00fck botunk m\u0171k\u00f6d\u00e9s\u00e9t\u2026 Mindenesetre, ebben a kontextusban ez a funkci\u00f3 a botunk... R\u00f6viden, most \u00e9s itt k\u00e9sz\u00edt\u00fcnk egy legegyszer\u0171bb botot, amely \u201et\u00fckr\u00f6zi\u201d (azaz visszak\u00fcldi) a felhaszn\u00e1l\u00f3i k\u00e9r\u00e9seket. Ezt a sablont mindig haszn\u00e1lhatjuk \u00faj Telegram-botok l\u00e9trehoz\u00e1sakor, hogy megbizonyosodjunk arr\u00f3l, hogy a kapcsolat a <i>Telegram<\/i>rendesen m\u0171k\u00f6dik. Kattintsunk a <i>F\u00e1jl l\u00e9trehoz\u00e1sa<\/i>, nevezz\u00fck el <i>index.js<\/i>, \u00e9s az online <i>K\u00f3deditorban<\/i> illessz\u00fck be a k\u00f6vetkez\u0151 k\u00f3dot ebbe a f\u00e1jlba:<\/p>\n<pre><code class=\"javascript\">module.exports.bot = async (event) =&gt; {\n  \n  const body = JSON.parse(event.body);\n\n  const msg = {\n    'method': 'sendMessage',\n    'chat_id': body.message.chat.id,\n    'text': body.message.text\n  };\n\n  return {\n    'statusCode': 200,\n    'headers': {\n      'Content-Type': 'application\/json'\n    },\n    'body': JSON.stringify(msg),\n    'isBase64Encoded': false\n  };\n};\n<\/code><\/pre>\n<p>\nA Yandex.Cloud konzolban ennek \u00edgy kell kin\u00e9znie:<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/f0204be84468c9ae7ec1b9e4ca0dfdd9.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nEzut\u00e1n kicsit lejjebb megadjuk <i>Bel\u00e9p\u00e9si pont<\/i> \u2014 <i>index.bot<\/i>, ahol <i>index<\/i> ez a f\u00e1jl neve (<i>index.js<\/i>). Ezeknek az \u00e9rt\u00e9keknek a tud\u00e1sa lehet\u0151v\u00e9 teszi sz\u00e1munkra, hogy megoldjuk az egyenletet <i>bot<\/i> \u2014 a funkci\u00f3 neve (<i>module.exports.bot<\/i>). Minden egy\u00e9b mez\u0151t \u201ehagyjunk \u00fagy, ahogyan van\u201d, \u00e9s a jobb fels\u0151 sarokban kattintsunk a <i>Verzi\u00f3 l\u00e9trehoz\u00e1sa<\/i>gombra. N\u00e9h\u00e1ny m\u00e1sodperc m\u00falva l\u00e9trej\u00f6n ez a funkci\u00f3 verzi\u00f3. Hamarosan, a webhook tesztel\u00e9se ut\u00e1n <i>, l\u00e9trehozunk egy \u00faj verzi\u00f3t \u2014<\/i>, l\u00e9trehozunk egy \u00faj verzi\u00f3t \u2014 <i>Okos Gondolatok<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/48cd898f83bdc29d124600828bf2143f.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<h2>Objektumt\u00e1rol\u00f3<\/h2>\n<p>\nMost m\u00e1r, hogy l\u00e9trehoztuk <i>Yandex-funkci\u00f3<\/i>, n\u00e9zz\u00fck, mivel vagyunk a konzolban <i>a Yandex.Cloud-ban<\/i>, l\u00e9trehozunk egy \u00fagynevezett t\u00e1rol\u00f3t (<i>t\u00e1rol\u00f3<\/i>, azaz v\u00f6d\u00f6r magyarul, de nem csokor) a k\u00e9pf\u00e1jlok t\u00e1rol\u00e1s\u00e1ra, amelyeket a botunk haszn\u00e1lni fog <i>Okos Gondolatok<\/i>. A bal oldali navig\u00e1ci\u00f3s men\u00fcben v\u00e1lassza a <i>Object Storage<\/i>pontot, majd kattintson a <i>T\u00e1rol\u00f3 l\u00e9trehoz\u00e1sa<\/i>, adjunk neki nevet, p\u00e9ld\u00e1ul, <i>img-t\u00e1rol\u00f3<\/i>, \u00e9s ami a legfontosabb, <i>Az objektumok olvas\u00e1si hozz\u00e1f\u00e9r\u00e9s\u00e9t<\/i> nyilv\u00e1noss\u00e1 tessz\u00fck \u2014 k\u00fcl\u00f6nben a Telegram nem l\u00e1tja a k\u00e9peinket. Minden m\u00e1s mez\u0151t v\u00e1ltozatlanul hagyunk. Kattints a gombra <i>T\u00e1rol\u00f3 l\u00e9trehoz\u00e1sa<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/c890a42f7d043e03300434b2c4a0258b.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nEzut\u00e1n az \u00f6sszes t\u00e1rol\u00f3 list\u00e1ja k\u00f6r\u00fclbel\u00fcl \u00edgy n\u00e9zhet ki (ha ez az egyetlen t\u00e1rol\u00f3ja):<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/34701231536742a7889b200ff49b08b1.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nMost javaslom, hogy kattintson a t\u00e1rol\u00f3 nev\u00e9re, \u00e9s bel\u00fcl hozzon l\u00e9tre egy mapp\u00e1t, hogy rendszerezze a k\u00e9pek t\u00e1rol\u00e1s\u00e1t a k\u00fcl\u00f6nb\u00f6z\u0151 alkalmaz\u00e1saihoz. P\u00e9ld\u00e1ul a Telegram-bothoz <i>Okos Gondolatok<\/i> l\u00e9trehoztam egy mapp\u00e1t, amelynek neve <i>tg-bot-okos-gondolatok<\/i> (semmi, \u00e9rtem ezt a k\u00f3dot). \u00d6n is hozzon l\u00e9tre egyet.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/c5707b5ba54fea5b548d62e097328650.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nMost m\u00e1r kattintson a mappa nev\u00e9re, l\u00e9pjen be, \u00e9s t\u00f6ltse fel a f\u00e1jlokat:<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/ead320e587e1d161e2cd54a94b4ea0d4.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\n\u00c9s a f\u00e1jl nev\u00e9re kattintva \u2014 megkaphatja azt <i>URL<\/i> a botunk sz\u00e1m\u00e1ra, \u00e9s egy\u00e1ltal\u00e1n \u2014 b\u00e1rhol (de ne tegye k\u00f6zz\u00e9 ezt az <i>URL<\/i> sz\u00fcks\u00e9gtelen\u00fcl, mivel a forgalom az <i>Objektumt\u00e1rol\u00f3<\/i> k\u00f6lts\u00e9gekkel j\u00e1r).<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/07a833430b0584161423f363f6685306.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nEz l\u00e9nyeg\u00e9ben minden a <i>Objektumt\u00e1rol\u00f3r\u00f3l<\/i>. Most m\u00e1r tudni fogja, mit tegyen, amikor megl\u00e1t egy felh\u00edv\u00e1st, hogy t\u00f6lts\u00f6n fel f\u00e1jlokat oda.<\/p>\n<h2>Webhook<\/h2>\n<p>\nMost be\u00e1ll\u00edtjuk a <i>webhookot<\/i> \u2014 azaz, amikor a bot friss\u00edt\u00e9st kap (p\u00e9ld\u00e1ul egy \u00fczenetet egy felhaszn\u00e1l\u00f3t\u00f3l), akkor a szervert\u0151l <i>Telegram<\/i> a mi\u00e9nkhez <i>Yandex-funkci\u00f3hoz<\/i> k\u00e9r\u00e9s (<i>request<\/i>) \u00e9rkezik az adatokkal. Itt van egy vonal, amit egyszer\u0171en beilleszthet a b\u00f6ng\u00e9sz\u0151 c\u00edmsor\u00e1ba, majd friss\u00edtse az oldalt (ezt egyszer kell megtenni): <code>https:\/\/api.telegram.org\/bot{bot_token}\/setWebHook?url={webhook_url}<\/code><br \/>\nCsak cser\u00e9lje ki <i>{bot_token}<\/i> a botunkt\u00f3l kapott token\u00fcnkre, amit a botunk l\u00e9trehoz\u00e1sakor kaptunk, \u00e9s a <i>{webhook_url}<\/i> \u2014 a <i>URL<\/i> mi\u00e9nk. <i>Yandex-funkci\u00f3k<\/i>Egy pillanat! De h\u00e1t <i>RosKomCenz\u00far<\/i> tiltja a szolg\u00e1ltat\u00f3kat Oroszorsz\u00e1gban, hogy kezelj\u00e9k a c\u00edmet <code>https:\/\/api.telegram.org<\/code>. Igen, helyes. De \u00d6n tal\u00e1ljon ki valamit. Hiszen lehet p\u00e9ld\u00e1ul k\u00e9rni egy nagymam\u00e1t Ukrajn\u00e1ban, Izraelben vagy Kanad\u00e1ban \u2014 ott nincsenek \u201eorosz cenz\u00far\u00e1k\u201d, \u00e9s egyed\u00fcl Isten tudja, hogyan \u00e9lnek az emberek e n\u00e9lk\u00fcl. V\u00e9g\u00fcl is, a webhook be\u00e1ll\u00edt\u00e1sakor a k\u00e9r\u00e9s-v\u00e1lasz ennek \u00edgy kell kin\u00e9znie:<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/713834a1665520d3e471cd3d1831ac06.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nTesztelj\u00fck. \u201et\u00fck\u00f6rk\u00e9pnek\u201d kell lennie.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/3ab0e97f9b0ca06295fe7f5f793aab2c.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\n\u00cdgy van. Gratul\u00e1lunk \u2014 most <i>Yandex-funkci\u00f3<\/i> lett <i>Telegram<\/i>-bot!<\/p>\n<h2>Okos Gondolatok<\/h2>\n<p>\nMost pedig k\u00e9sz\u00edts\u00fcnk Okos Gondolatokat. A k\u00f3d nyitva van \u00e9s megtal\u00e1lhat\u00f3 a <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/stmike\/tg-bot-smart-thoughts\"><b><i>GitHub<\/i><\/b><\/a><\/noindex>. J\u00f3l komment\u00e1lt, \u00e9s mind\u00f6ssze sz\u00e1z sor. Olvassa el, mint egy opera\u00e9nekes a librett\u00f3t! <\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/2ad0e96a2169d0859ccec836f151d3ea.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nKl\u00f3nozd a projektet \u00e9s \u00e1ll\u00edtsd be a f\u00fcgg\u0151s\u00e9geket:<\/p>\n<pre><code class=\"plaintext\">git clone https:\/\/github.com\/stmike\/tg-bot-smart-thoughts.git\ncd tg-bot-smart-thoughts\nnpm i\n<\/code><\/pre>\n<p>\nHozd l\u00e9tre a sz\u00fcks\u00e9ges v\u00e1ltoztat\u00e1sokat a f\u00e1jlban <i>index.js<\/i> (opcion\u00e1lis; nem sz\u00fcks\u00e9ges v\u00e1ltoztat\u00e1s). Hozd l\u00e9tre a <i>zip<\/i>-arch\u00edvumot, a f\u00e1jllal <i>index.js<\/i> \u00e9s a mapp\u00e1val <i>node_modules<\/i> bel\u00fcl, p\u00e9ld\u00e1ul a k\u00f6vetkez\u0151 n\u00e9ven <i>smart.zip<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/c8c97707515338a01f8b8ed7f743c4a5.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nMost l\u00e9pj a konzolban a <i>Yandex-funkci\u00f3k<\/i>, v\u00e1laszd a k\u00f6vetkez\u0151 lapot <i>ZIP-arch\u00edvum<\/i>, kattints a <i>F\u00e1jl kiv\u00e1laszt\u00e1sa<\/i>, \u00e9s t\u00f6ltsd fel az arch\u00edvumot <i>smart.zip<\/i>. V\u00e9g\u00fcl, a jobb fels\u0151 sarokban kattints a <i>Verzi\u00f3 l\u00e9trehoz\u00e1sa<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/96634c132848278ecc00a509e61b13f0.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nN\u00e9h\u00e1ny m\u00e1sodperc m\u00falva, amikor a funkci\u00f3 friss\u00fcl, tesztelj\u00fck \u00fajra a botunkat. Most m\u00e1r nem 't\u00fckr\u00f6z', hanem okos gondolatokat sz\u00e1ll\u00edt!<\/p>\n<p><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/0c683826b5ef2bdbbd0253de4691900a.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nEnnyi m\u00e1ra. Tov\u00e1bbi cikkek k\u00f6vetkeznek. Akik hasonl\u00f3kat \u00e9rdekelnek - iratkozzanak fel az \u00faj cikkek \u00e9rtes\u00edt\u00e9seire. Feliratkozni itt lehet, vagy a <i>Telegram<\/i>-csatorn\u00e1ra <noindex><a rel=\"nofollow\" href=\"https:\/\/t.me\/it_tutorial_zahar\"><i>IT Tutorial Zahar<\/i><\/a><\/noindex>, vagy <i>vagy a<\/i> <noindex><a rel=\"nofollow\" href=\"https:\/\/twitter.com\/mikezaharov\"><i>@mikezaharov<\/i><\/a><\/noindex>.<\/p>\n<h2>Hivatkoz\u00e1sok<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/stmike\/tg-bot-smart-thoughts\"><b><i>K\u00f3d GitHubon<\/i><\/b><\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/cloud.yandex.ru\/docs\/functions\/\"><b><i>Yandex Cloud Functions<\/i><\/b><\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/cloud.yandex.ru\/docs\/storage\/\"><b><i>Yandex Object Storage<\/i><\/b><\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/core.telegram.org\/bots\"><b><i>Bots: Bevezet\u00e9s fejleszt\u0151knek<\/i><\/b><\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/core.telegram.org\/bots\/api\"><b><i>Telegram Bot API<\/i><\/b><\/a><\/noindex><\/p>\n<h2>Adom\u00e1nyok<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"http:\/\/yasobe.ru\/na\/vui\"><img decoding=\"async\" alt=\"Telegram-bot \u00e9p\u00edt\u00e9se a Yandex.Cloud-on\" src=\"\/wp-content\/uploads\/2020\/02\/250f8765713080fcbbdaf56c04dc882f.png\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><br \/>\n<br \/>Forr\u00e1s: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/486876\/\">habr.com<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0438\u0437 \u043f\u043e\u0434\u0440\u0443\u0447\u043d\u044b\u0445 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u043c\u044b \u0441\u043e\u0431\u0435\u0440\u0451\u043c \u0432 \u042f\u043d\u0434\u0435\u043a\u0441.\u041e\u0431\u043b\u0430\u043a\u0435 Telegram-\u0431\u043e\u0442 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Yandex Cloud Functions (\u0438\u043b\u0438 \u042f\u043d\u0434\u0435\u043a\u0441-\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u2014 \u0434\u043b\u044f \u043a\u0440\u0430\u0442\u043a\u043e\u0441\u0442\u0438) \u0438 Yandex Object Storage (\u0438\u043b\u0438 \u041e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u2014 \u0434\u043b\u044f \u044f\u0441\u043d\u043e\u0441\u0442\u0438). \u041a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430 Node.js. \u041e\u0434\u043d\u0430\u043a\u043e, \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e \u043f\u0438\u043a\u0430\u043d\u0442\u043d\u043e\u0435 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u2014 \u043d\u0435\u043a\u0430\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c, \u0441\u043a\u0430\u0436\u0435\u043c \u0442\u0430\u043a, \u0420\u043e\u0441\u0441\u041a\u043e\u043c\u0426\u0435\u043d\u0437\u0443\u0440 (\u0446\u0435\u043d\u0437\u0443\u0440\u0430 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u0430 \u0441\u0442\u0430\u0442\u044c\u0451\u0439 29 \u041a\u043e\u043d\u0441\u0442\u0438\u0442\u0443\u0446\u0438\u0438 \u0420\u0424), \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":41316,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-41315","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0438\u0437 \u043f\u043e\u0434\u0440\u0443\u0447\u043d\u044b\u0445 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u043c\u044b \u0441\u043e\u0431\u0435\u0440\u0451\u043c \u0432.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/stroim-telegram-bot-v-yandeks-oblake\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0421\u0442\u0440\u043e\u0438\u043c Telegram-\u0431\u043e\u0442 \u0432 \u042f\u043d\u0434\u0435\u043a\u0441.\u041e\u0431\u043b\u0430\u043a\u0435 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0438\u0437 \u043f\u043e\u0434\u0440\u0443\u0447\u043d\u044b\u0445 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u043c\u044b \u0441\u043e\u0431\u0435\u0440\u0451\u043c \u0432.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/stroim-telegram-bot-v-yandeks-oblake\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-02-10T09:09:34+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-02-10T09:09:34+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Telegram-bot \u00e9p\u00edt\u00e9se Yandex Felh\u0151ben | ProHoster","description":"Ma h\u00e1zi anyagokb\u00f3l fogunk \u00f6sszerakni egyet.","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/stroim-telegram-bot-v-yandeks-oblake","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0421\u0442\u0440\u043e\u0438\u043c Telegram-\u0431\u043e\u0442 \u0432 \u042f\u043d\u0434\u0435\u043a\u0441.\u041e\u0431\u043b\u0430\u043a\u0435 | ProHoster","og:description":"\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0438\u0437 \u043f\u043e\u0434\u0440\u0443\u0447\u043d\u044b\u0445 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u043c\u044b \u0441\u043e\u0431\u0435\u0440\u0451\u043c \u0432.","og:url":"https:\/\/prohoster.info\/hu\/blog\/stroim-telegram-bot-v-yandeks-oblake","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-02-10T09:09:34+00:00","article:modified_time":"2020-02-10T09:09:34+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"41315","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 00:19:25","updated":"2022-09-29 21:53:55","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/41315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=41315"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/41315\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media\/41316"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=41315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=41315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=41315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}