{"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\/sq\/blog\/stroim-telegram-bot-v-yandeks-oblake","title":{"rendered":"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/4a758744e4fc6bc797d270fa1bc42ef3.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nSot nga materiale t\u00eb zakonshme ne do t\u00eb mblidhen n\u00eb <noindex><a rel=\"nofollow\" href=\"https:\/\/cloud.yandex.ru\/\"><i>Yandex.Cloud<\/i><\/a><\/noindex> <i>Telegram-bot<\/i> duke p\u00ebrdorur <noindex><a rel=\"nofollow\" href=\"https:\/\/cloud.yandex.ru\/services\/functions\"><i>Yandex Cloud Functions<\/i><\/a><\/noindex> (ose <i>Funksionet e Yandex<\/i> \u2014 p\u00ebr shkurtim) dhe <noindex><a rel=\"nofollow\" href=\"https:\/\/cloud.yandex.ru\/services\/storage\"><i>Yandex Object Storage<\/i><\/a><\/noindex> (ose <i>Depoja e Objektit<\/i> \u2014 p\u00ebr qart\u00ebsi). Kodi do t\u00eb jet\u00eb n\u00eb <i>Node.js<\/i>. Megjithat\u00eb, ka nj\u00eb rrethan\u00eb delikate \u2014 nj\u00eb organizat\u00eb me emrin, le ta quajm\u00eb k\u00ebshtu, <i>Roskomnadzor<\/i> (censura \u00ebsht\u00eb e ndaluar nga neni 29 i Kushtetut\u00ebs s\u00eb Federat\u00ebs Ruse), nuk lejon ofruesit e internetit n\u00eb Rusi t\u00eb d\u00ebrgojn\u00eb k\u00ebrkesa n\u00eb <i>Telegram API<\/i> n\u00eb adres\u00ebn: <code>https:\/\/api.telegram.org\/<\/code>. E pra, nuk do ta b\u00ebjm\u00eb \u2014 n\u00ebse nuk \u00ebsht\u00eb, nuk \u00ebsht\u00eb. Sepse n\u00eb valixhen ton\u00eb kemi t\u00eb ashtuquajturat <i>webhooks<\/i> \u2014 me ndihm\u00ebn e tyre ne nuk d\u00ebrgojm\u00eb k\u00ebrkesa n\u00eb nj\u00eb adres\u00eb specifike, por thjesht d\u00ebrgojm\u00eb k\u00ebrkes\u00ebn ton\u00eb si p\u00ebrgjigje ndaj \u00e7do k\u00ebrkese q\u00eb na vjen. Pra, si n\u00eb Odessa \u2014 p\u00ebrgjigjemi me nj\u00eb pyetje p\u00ebr nj\u00eb pyetje. Prandaj <i>Telegram API<\/i> n\u00eb kodin ton\u00eb nuk do t\u00eb p\u00ebrfshihet.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\n<b class=\"spoiler_title\">Kufizimi<\/b><i>Emrat e p\u00ebrmendur n\u00eb k\u00ebt\u00eb artikull t\u00eb ndonj\u00eb organizate shtet\u00ebrore jan\u00eb t\u00eb sajuar, dhe ngjashm\u00ebrit\u00eb e mundshme me emrat e organizatave reale jan\u00eb rast\u00ebsore. <\/i> <\/p>\n<p>Pra, do t\u00eb krijojm\u00eb nj\u00eb bot q\u00eb do t\u00eb na furnizoj\u00eb me mendime t\u00eb zgjuara. Pik\u00ebrisht si n\u00eb imazh:<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/t.me\/SmartThoughtsBot\"><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/6b7aca248999621a20f8a0ec29e75c75.png\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<p>Mund ta provoni at\u00eb n\u00eb veprim \u2014 ja emri: <b><i>@SmartThoughtsBot<\/i><\/b>. V\u00ebrejt\u00ebm butonin <i>\u00abAft\u00ebsia e Alis\u00eb\u00bb<\/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>aft\u00ebsia e Alis\u00eb<\/i>, dmth. ai kryen t\u00eb nj\u00ebjtat funksione si <i>aft\u00ebsia e Alis\u00eb<\/i> dhe, ndoshta, ata do t\u00eb mund t\u00eb bashk\u00ebjetojn\u00eb pa probleme duke reklamuar nj\u00ebri-tjetrin. Rreth m\u00ebnyr\u00ebs se si t\u00eb krijoni <i>aft\u00ebsin\u00eb E Mendjeve t\u00eb Smart<\/i> \u00ebsht\u00eb treguar n\u00eb artikullin <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/465275\/\"><b><i>Ali tha merr aft\u00ebsin\u00eb<\/i><\/b><\/a><\/noindex>. Tani (pas disa ndryshimeve q\u00eb u b\u00ebn\u00eb pas publikimit t\u00eb artikullit t\u00eb p\u00ebrmendur m\u00eb sip\u00ebr) n\u00eb smartphone ky <i>aft\u00ebsi<\/i> do t\u00eb duket m\u00eb pak k\u00ebshtu:<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/alice.ya.ru\/s\/f785af07-4578-4a6b-95ae-485bd803ae20\"><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/e92c340f8d947ba9252e0fcab0511ce6.png\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<h2>Krijimi i bot\u00ebve<\/h2>\n<p>\nDo t\u00eb doja q\u00eb ky udh\u00ebzues t\u00eb ishte i dobish\u00ebm p\u00ebr t\u00eb gjith\u00eb, p\u00ebrfshir\u00eb ata q\u00eb sapo fillojn\u00eb \u00abnd\u00ebrtimin e bot\u00ebve\u00bb. Prandaj, n\u00eb k\u00ebt\u00eb pjes\u00eb do t\u00eb p\u00ebrshkruaj n\u00eb detaje se si krijohen n\u00eb <i>Telegram<\/i>\u2018e bota. P\u00ebr ata q\u00eb kjo informacion nuk u nevojitet \u2014 kaloni n\u00eb seksionet e ardhshme. <\/p>\n<p>Hapni aplikacionin <i>Telegaram<\/i>, th\u00ebrras\u00ebm babain e t\u00eb gjith\u00eb bot\u00ebve (ata jan\u00eb si njer\u00ebzit) \u2014 <b><i>@BotFather<\/i><\/b> \u2014 dhe p\u00ebr fillim i japim atij komand\u00ebn \/help, p\u00ebr t\u00eb freskuar kujtes\u00ebn se \u00e7far\u00eb mund t\u00eb b\u00ebjm\u00eb. Tani, ne do t\u00eb interesoheni p\u00ebr komand\u00ebn <i>\/newbot<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/12a0e84dd712e0c74dee0463f1b44e74.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nDuke qen\u00eb se boti i p\u00ebrshkruar k\u00ebtu tashm\u00eb \u00ebsht\u00eb krijuar, p\u00ebr q\u00ebllime demonstruese do t\u00eb krijoj nj\u00eb boti tjet\u00ebr p\u00ebr nj\u00eb koh\u00eb t\u00eb shkurt\u00ebr (pastaj do ta fshij). Do ta quaj <i>DemoHabrBot<\/i>. Emrat (<i>username<\/i>) t\u00eb gjith\u00eb bota t\u00eb Telegram duhet t\u00eb p\u00ebrfundojn\u00eb me fjal\u00ebn <i>bot<\/i>, p\u00ebr shembull: <i>MyCoolBot<\/i> ose <i>my_cool_bot<\/i> \u2014 ky \u00ebsht\u00eb p\u00ebr bot\u00ebt. Por s\u00eb pari, i japim botit nj\u00eb em\u00ebr (<i>emri<\/i>) \u2014 dhe ky \u00ebsht\u00eb p\u00ebr njer\u00ebzit. Emri mund t\u00eb jet\u00eb n\u00eb \u00e7do gjuh\u00eb, t\u00eb p\u00ebrmbaj\u00eb hap\u00ebsira, nuk \u00ebsht\u00eb e nevojshme t\u00eb p\u00ebrfundoj\u00eb me fjal\u00ebn <i>bot<\/i>, dhe as nuk \u00ebsht\u00eb e nevojshme t\u00eb jet\u00eb unik. N\u00eb k\u00ebt\u00eb shembull, un\u00eb e quajta k\u00ebt\u00eb bot <i>Demo Habra<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/682ecf64724cabcfef96639d6de87521.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nTani po zgjedhim emrin p\u00ebr botin (<i>username<\/i>, ai q\u00eb \u00ebsht\u00eb p\u00ebr bot\u00ebt). Le ta quajm\u00eb <i>DemoHabrBot<\/i>. \u00c7do gj\u00eb q\u00eb i p\u00ebrket emrit t\u00eb botit (<i>emri<\/i>) nuk i p\u00ebrket fare emrit t\u00eb tij \u2014 <i>username<\/i> (ose i p\u00ebrket, por me precizitet t\u00eb kund\u00ebrt). Pas krijimit t\u00eb suksessh\u00ebm t\u00eb emrit unik t\u00eb botit, duhet ta kopjojm\u00eb dhe ta ruajm\u00eb (n\u00eb nj\u00eb fsheht\u00ebsi t\u00eb rrept\u00eb!) token, e cila shfaqet n\u00eb screenshot me arrow t\u00eb kuqe. Me t\u00eb do t\u00eb vendosim m\u00eb von\u00eb nj\u00eb webhook nga <i>Telegram<\/i>\u2018a webhook n\u00eb ton\u00eb <i>funksionin ton\u00eb Yandex<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/78254946c9f763d212a1952bac6c706f.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nTani do t\u2019i japim komand\u00ebn atij q\u00eb \u00ebsht\u00eb bashk\u00ebpunimi i t\u00eb gjith\u00eb bot\u00ebve: <i>\/mybots<\/i>, dhe ai do t\u00eb na tregoj\u00eb list\u00ebn e t\u00eb gjith\u00eb bot\u00ebve q\u00eb kemi krijuar. Tani, le ta l\u00ebm\u00eb pak botin e sapokrijuar <i>Demo Habra<\/i> (ai u krijua p\u00ebr t\u00eb treguar se si t\u00eb krijoni bota, por ne do ta p\u00ebrdorim p\u00ebrs\u00ebri m\u00eb von\u00eb p\u00ebr q\u00ebllime t\u00eb tjera demostrative), dhe le t\u00eb shqyrtojm\u00eb botin <i>Mendime t\u00eb Men\u00e7ura<\/i> (<i>@SmartThoughtsBot<\/i>). Klikoni n\u00eb list\u00ebn e bot\u00ebve mbi butonin me emrin e tij.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/98434725cb0d7441ec5f2552b0b508a8.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nK\u00ebtu mund t\u00eb konfigurojm\u00eb robotin ton\u00eb. Duke klikuar butonin <i>Redakto\u2026<\/i> do t\u00eb kalojm\u00eb n\u00eb modifikimin e nj\u00eb opcioni t\u00eb caktuar. P\u00ebr shembull, duke klikuar n\u00eb butonin <i>Ndrysho Emrin<\/i> mund t\u00eb ndryshojm\u00eb emrin e robotit, p\u00ebr shembull nga <i>Mendime t\u00eb Men\u00e7ura<\/i>t\u00eb shkruajm\u00eb <i>Ide t\u00eb \u00c7mendura<\/i>. <i>Botpic<\/i> \u2014 \u00ebsht\u00eb avatari i robotit, duhet t\u00eb jet\u00eb jo m\u00eb pak se <i>150 x 150 px<\/i>. <i>P\u00ebrshkrimi<\/i> \u2014 \u00ebsht\u00eb nj\u00eb p\u00ebrshkrim i shkurt\u00ebr, q\u00eb p\u00ebrdoruesi e sheh n\u00eb fillim t\u00eb funksionimit t\u00eb robotit, si p\u00ebrgjigje n\u00eb pyetjen: <i>\u00c7far\u00eb mund t\u00eb b\u00ebj\u00eb ky robot?<\/i> <i>Rreth<\/i> \u2014 nj\u00eb p\u00ebrshkrim edhe m\u00eb t\u00eb shkurt\u00ebr, i cili d\u00ebrgohet me lidhje n\u00eb robot (<code>https:\/\/t.me\/SmartThoughtsBot<\/code>) ose gjat\u00eb shikimit t\u00eb informacionit p\u00ebr t\u00eb.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/f15ba92be1bfea827273f79616bd2a3a.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nNa ka mbetur vet\u00ebm t\u00eb konfigurojm\u00eb komandat. P\u00ebr k\u00ebt\u00eb, klikoni butonin <i>Ndrysho Komandat<\/i>. P\u00ebr standardizimin e praktik\u00ebs s\u00eb p\u00ebrdoruesve <i>Telegram<\/i> rekomandohet t\u00eb p\u00ebrdoren gjithmon\u00eb dy komandat: <i>\/start<\/i> dhe <i>\/help<\/i>, dhe n\u00ebse boti ka nevoj\u00eb p\u00ebr rregullime \u2014 nj\u00eb komand\u00eb shtes\u00eb \/settings. Boti yn\u00eb \u00ebsht\u00eb i thjesht\u00eb si nj\u00eb top, prandaj rregullimet p\u00ebr t\u00eb nuk jan\u00eb ende t\u00eb nevojshme. Shkruajm\u00eb dy komandat e para, t\u00eb cilat m\u00eb pas do t'i p\u00ebrpunojm\u00eb n\u00eb kod. Tani, n\u00ebse p\u00ebrdoruesi n\u00eb fush\u00ebn e hyrjes shkron rresht (shkronj\u00eb e drejt\u00eb: \/), do t\u00eb shfaqet nj\u00eb list\u00eb komandash p\u00ebr zgjedhje t\u00eb shpejt\u00eb. \u00c7do gj\u00eb, si n\u00eb imazh: majtas \u2014 vendosim komandat p\u00ebrmes botit-prind; djathtas, k\u00ebto komanda jan\u00eb tashm\u00eb t\u00eb disponueshme p\u00ebr p\u00ebrdoruesit n\u00eb botin ton\u00eb.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/b536b5fe7b8aad3d68877a7693ea0e6f.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<h2>Funksioni Yandex<\/h2>\n<p>\nTani, pasi bota jon\u00eb \u00ebsht\u00eb krijuar, kalojm\u00eb n\u00eb <i>Yandex.Cloud<\/i>, p\u00ebr t\u00eb krijuar nj\u00eb funksion q\u00eb do t\u00eb p\u00ebrpunoj\u00eb kodin e botit ton\u00eb. N\u00ebse nuk keni punuar m\u00eb par\u00eb me <i>Yandex.Cloud<\/i> , lexoni materialin <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/464739\/\"><b><i>Alisa n\u00eb vendin Bitrix<\/i><\/b><\/a><\/noindex>, dhe pastaj \u2014 <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/440374\/\"><b><i>Funksionet Yandex d\u00ebrgojn\u00eb e-mail<\/i><\/b><\/a><\/noindex>. Jam almost i sigurt se k\u00ebto dy artikuj relativisht t\u00eb vegj\u00ebl do t'ju mjaftojn\u00eb p\u00ebr nj\u00eb kuptim themelor t\u00eb tem\u00ebs.<\/p>\n<p>Pra, n\u00eb konsol\u00ebn <i>Yandex.Cloud<\/i> , n\u00eb menun\u00eb e majt\u00eb t\u00eb navigimit zgjidhni pik\u00ebn <i>Cloud Functions<\/i>, dhe m\u00eb pas klikoni butonin <i>Krijo funksion<\/i>. I japim em\u00ebr, dhe p\u00ebr vete \u2014 nj\u00eb p\u00ebrshkrim t\u00eb shkurt\u00ebr.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/67f313c60481c5ef84af8a28b4934621.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nPas klikimit t\u00eb butonit <i>Krijo<\/i> dhe pas disa sekondash, funksioni i ri do t\u00eb shfaqet n\u00eb list\u00ebn e t\u00eb gjitha funksioneve. Klikoni mbi emrin e tij \u2014 kjo do t\u00eb na \u00e7oj\u00eb n\u00eb faqen <i>P\u00ebrmbledhje<\/i> e funksionit ton\u00eb. K\u00ebtu duhet t\u00eb aktivizoni (<i>Aktivizo<\/i>) nd\u00ebrruesin <i>Funksioni publik<\/i>, n\u00eb m\u00ebnyr\u00eb q\u00eb t\u00eb b\u00ebhet i disponuesh\u00ebm nga bota e jashtme (p\u00ebr <i>Yandex.Cloud<\/i>) dhe vlera e fushave <i>Linku p\u00ebr thirrjen<\/i> dhe <i>Identifikuesi<\/i> \u2014 ta mbani t\u00eb fshehur nga t\u00eb gjith\u00eb p\u00ebrve\u00e7 vetes dhe Telegramit, n\u00eb m\u00ebnyr\u00eb q\u00eb funksioni juaj t\u00eb mos vihet n\u00eb p\u00ebrdorim nga mashtrues t\u00eb ndrysh\u00ebm.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/3ba45d357965d567ba33ab0ee65d2eb4.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nTani me ndihm\u00ebn e menus\u00eb s\u00eb majt\u00eb kalojm\u00eb n\u00eb <i>Redaktuesi<\/i> i funksionit. Le t\u00eb anulojm\u00eb p\u00ebr pak koh\u00eb <i>Mendime t\u00eb Men\u00e7ura<\/i>, dhe t\u00eb krijojm\u00eb nj\u00eb funksion minimal si shabllon p\u00ebr t\u00eb verifikuar funksionalitetin e robotit ton\u00eb\u2026 Megjithat\u00eb, n\u00eb k\u00ebt\u00eb kontekst ky funksion \u00ebsht\u00eb robotin ton\u00eb\u2026 N\u00eb p\u00ebrfundim, tani dhe k\u00ebtu do t\u00eb krijojm\u00eb nj\u00eb robot t\u00eb thjesht\u00eb, i cili do t\u00eb \u201creflektoj\u00eb\u201d (dmth. t\u00eb kthej\u00eb) k\u00ebrkesat e p\u00ebrdoruesve. Ky shabllon mund t\u00eb p\u00ebrdoret gjithmon\u00eb gjat\u00eb krijimit t\u00eb robot\u00ebve t\u00eb rinj t\u00eb Telegram-it p\u00ebr t'u siguruar q\u00eb lidhja me <i>Telegram<\/i>po funksionon normalisht. Klikoni <i>Krijo skedarin<\/i>, em\u00ebrtojeni <i>index.js<\/i>, dhe n\u00eb Redaktuesin e kodit online <i>ngjiteni n\u00eb k\u00ebt\u00eb skedar kodin e m\u00ebposht\u00ebm:<\/i> shtojm\u00eb n\u00eb k\u00ebt\u00eb sked\u00eb kodin vijues:<\/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>\nN\u00eb konsol\u00ebn e Yandex.Cloud, kjo duhet t\u00eb duket si m\u00eb posht\u00eb:<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/f0204be84468c9ae7ec1b9e4ca0dfdd9.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nM\u00eb pas, pak m\u00eb posht\u00eb, sh\u00ebnojm\u00eb <i>Pika e hyrjes<\/i> \u2014 <i>index.bot<\/i>, ku <i>index<\/i> k\u00ebto jan\u00eb emrat e skedar\u00ebve (<i>index.js<\/i>), nd\u00ebrsa <i>bot<\/i> \u2014 emri i funksionit (<i>module.exports.bot<\/i>). T\u00eb gjitha fushat e tjera i l\u00ebm\u00eb \"si kan\u00eb qen\u00eb\", dhe n\u00eb k\u00ebndin e sip\u00ebrm t\u00eb djatht\u00eb klikojm\u00eb butonin <i>Krijo versionin<\/i>. Pas disa sekondash, ky version i funksionit do t\u00eb krijohet. S\u00eb shpejti, pas testimit <i>webhook-ut<\/i>, ne do t\u00eb krijojm\u00eb nj\u00eb version t\u00eb ri \u2014 <i>Mendime t\u00eb Men\u00e7ura<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/48cd898f83bdc29d124600828bf2143f.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<h2>Depoja e Objektit<\/h2>\n<p>\nTani, kur kemi krijuar <i>Funksioni Yandex<\/i>, le t\u00eb krijojm\u00eb, nd\u00ebrsa jemi n\u00eb konsol\u00eb <i>Yandex.Cloud<\/i>, nj\u00eb bucket (<i>bucket<\/i>, dometh\u00ebn\u00eb, nj\u00eb kov\u00eb n\u00eb shqip, fare nuk \u00ebsht\u00eb nj\u00eb buqet\u00eb) p\u00ebr ruajtjen e skedar\u00ebve t\u00eb imazheve q\u00eb do t\u00eb p\u00ebrdoren n\u00eb robotin ton\u00eb <i>Mendime t\u00eb Men\u00e7ura<\/i>. N\u00eb menun\u00eb e navigimit t\u00eb majt\u00eb, zgjedhim seksionin <i>Object Storage<\/i>, kliko n\u00eb butonin <i>Krijo bucket<\/i>, mendo nj\u00eb em\u00ebr p\u00ebr t\u00eb, p\u00ebr shembull, <i>img-bucket<\/i>, dhe, m\u00eb e r\u00ebnd\u00ebsishmja, <i>Qasje p\u00ebr t\u00eb lexuar objektet<\/i> e b\u00ebjm\u00eb publike \u2014 ndryshe Telegramit t\u00eb imazheve tona nuk do t'i shoh\u00eb. T\u00eb gjitha fushat e tjera lihen pa ndryshime. Shtyp butonin <i>Krijo bucket<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/c890a42f7d043e03300434b2c4a0258b.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nPas k\u00ebsaj, lista e t\u00eb gjitha bucket-eve mund t\u00eb duket di\u00e7ka si kjo (n\u00ebse ky \u00ebsht\u00eb bucket-i juaj i vet\u00ebm):<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/34701231536742a7889b200ff49b08b1.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nTani propozoj t\u00eb klikoni n\u00eb emrin e bucket-it, dhe brenda tij t\u00eb krijoni nj\u00eb dosje p\u00ebr t\u00eb renditur ruajtjen e imazheve p\u00ebr aplikacione t\u00eb ndryshme. P\u00ebr shembull, p\u00ebr nj\u00eb bot Telegrami. <i>Mendime t\u00eb Men\u00e7ura<\/i> kam krijuar nj\u00eb dosje me emrin <i>tg-bot-smart-thoughts<\/i> (nuk ka r\u00ebnd\u00ebsi, do ta kuptoj k\u00ebt\u00eb kod). Krijoni dhe ju nj\u00eb t\u00eb till\u00eb.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/c5707b5ba54fea5b548d62e097328650.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nTani mund t\u00eb klikoni n\u00eb emrin e dosjes, t\u00eb hyni n\u00eb t\u00eb dhe t\u00eb ngarkoni skedar\u00eb:<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/ead320e587e1d161e2cd54a94b4ea0d4.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nNd\u00ebrsa duke klikuar n\u00eb emrin e skedarit \u2014 do ta merrni <i>URL<\/i> p\u00ebr ta p\u00ebrdorur n\u00eb botin ton\u00eb, dhe madje \u2014 kudo tjet\u00ebr (por, mos e publikoni k\u00ebt\u00eb <i>URL<\/i> pa nevoj\u00eb, pasi trafiku nga <i>Depoja objektive<\/i> aksesorohet).<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/07a833430b0584161423f363f6685306.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nJa, v\u00ebrtet, kjo \u00ebsht\u00eb e gjitha me <i>Depoj\u00ebn objektive<\/i>. Tani do t\u00eb dini se \u00e7far\u00eb t\u00eb b\u00ebni kur t\u00eb shihni nj\u00eb thirrje p\u00ebr t\u00eb ngarkuar skedar\u00eb atje.<\/p>\n<h2>Webhook<\/h2>\n<p>\nTani do t\u00eb vendosim <i>webhook<\/i> \u2014 do t\u00eb thot\u00eb, kur bota t\u00eb marr\u00eb nj\u00eb p\u00ebrdit\u00ebsim (p.sh., nj\u00eb mesazh nga p\u00ebrdoruesi), nga serveri <i>Telegram<\/i> do t\u00eb d\u00ebrgohet nj\u00eb k\u00ebrkes\u00eb ( <i>funksionin ton\u00eb Yandex<\/i> request<i>) me t\u00eb dh\u00ebnat. Ja nj\u00eb lidhje q\u00eb mund ta vendosni thjesht n\u00eb fush\u00ebn e shfletuesit dhe pastaj t\u00eb rikrijoni faqen (kjo duhet b\u00ebr\u00eb vet\u00ebm nj\u00eb her\u00eb):<\/i>Vet\u00ebm do ta z\u00ebvend\u00ebsojm\u00eb <code>https:\/\/api.telegram.org\/bot{bot_token}\/setWebHook?url={webhook_url}<\/code><br \/>\nThjesht do ta z\u00ebvendosim <i>{bot_token}<\/i> n\u00eb tokenin e marr\u00eb nga boti-prind n\u00eb krijimin e botit ton\u00eb, dhe <i>{webhook_url}<\/i> \u2014 n\u00eb <i>URL<\/i> ton\u00ebn <i>Funksionet e Yandex<\/i>. Nj\u00eb moment! Por, vall\u00eb <i>Roskomnadzor<\/i> ndalon ofruesit n\u00eb RF t\u00eb sh\u00ebrbejn\u00eb adres\u00ebn <code>https:\/\/api.telegram.org<\/code>. Po, sakt\u00eb. Por ju duhet t\u00eb shpikni di\u00e7ka. Mund ta k\u00ebrkoni, p\u00ebr shembull, nga gjyshja juaj n\u00eb Ukrain\u00eb, Izrael ose Kanada \u2014 atje nuk ka asnj\u00eb \u00abroskomcenzur\u00bb, dhe vet\u00ebm Zoti e di si jetojn\u00eb njer\u00ebzit pa k\u00ebt\u00eb. Si rezultat, k\u00ebrkesa-p\u00ebrgjigja kur vendosni webhook-un duhet t\u00eb duket k\u00ebshtu:<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/713834a1665520d3e471cd3d1831ac06.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nPo testojm\u00eb. Duhet t\u00eb \u00abpasqyroj\u00eb\u00bb.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/3ab0e97f9b0ca06295fe7f5f793aab2c.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nK\u00ebshtu \u00ebsht\u00eb. Urime \u2014 tani <i>Funksioni Yandex<\/i> u b\u00eb <i>Telegram<\/i>-boti!<\/p>\n<h2>Mendime t\u00eb Men\u00e7ura<\/h2>\n<p>\nDhe tani po krijojm\u00eb Mendime t\u00eb Zgjuara. Kodi \u00ebsht\u00eb i hapur dhe ndodhet n\u00eb <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/stmike\/tg-bot-smart-thoughts\"><b><i>GitHub<\/i><\/b><\/a><\/noindex>. Ai \u00ebsht\u00eb mjaft mir\u00eb i komentuar, dhe ka vet\u00ebm nj\u00ebqind rreshta. Lexojeni at\u00eb si nj\u00eb diva operistike libretin! <\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/2ad0e96a2169d0859ccec836f151d3ea.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nKloni projektin dhe instaloni var\u00ebsit\u00eb:<\/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>\nB\u00ebni ndryshimet e nevojshme n\u00eb skedarin <i>index.js<\/i> (opsionale; mund t\u00eb mos ndryshoni asgj\u00eb). Krijoni <i>zip<\/i>-arkivin, me skedarin <i>index.js<\/i> dhe dosjen <i>node_modules<\/i> brenda, p\u00ebr shembull, me emrin <i>smart.zip<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/c8c97707515338a01f8b8ed7f743c4a5.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nTani kaloni n\u00eb konsol\u00ebn ton\u00eb <i>Funksionet e Yandex<\/i>, zgjidhni sked\u00ebn <i>ZIP-archive<\/i>, shtypni butonin <i>Zgjedh fajll<\/i>, dhe ngarkoni arkivin ton\u00eb <i>smart.zip<\/i>. M\u00eb n\u00eb fund, n\u00eb k\u00ebndin e sip\u00ebrm t\u00eb djatht\u00eb, shtypni butonin <i>Krijo versionin<\/i>.<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/96634c132848278ecc00a509e61b13f0.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nPas disa sekondash, kur funksioni t\u00eb p\u00ebrdit\u00ebsohet, do t\u00eb testojm\u00eb p\u00ebrs\u00ebri botin ton\u00eb. Tani ai nuk \u00abreflekton\u00bb m\u00eb, por ofron mendime t\u00eb zgjuara!<\/p>\n<p><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/0c683826b5ef2bdbbd0253de4691900a.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nKjo ishte e gjitha p\u00ebr sot. Artikujt e tjer\u00eb do t\u00eb vijn\u00eb. P\u00ebr ata q\u00eb jan\u00eb t\u00eb interesuar t\u00eb lexojn\u00eb t\u00eb till\u00eb \u2014 regjistrohuni p\u00ebr njoftime rreth artikujve t\u00eb rinj. Mund t\u00eb regjistroheni k\u00ebtu, ose n\u00eb <i>Telegram<\/i>-kanalin <noindex><a rel=\"nofollow\" href=\"https:\/\/t.me\/it_tutorial_zahar\"><i>IT Tutorial Zahari<\/i><\/a><\/noindex>, ose <i>Twitter<\/i> <noindex><a rel=\"nofollow\" href=\"https:\/\/twitter.com\/mikezaharov\"><i>@mikezaharov<\/i><\/a><\/noindex>.<\/p>\n<h2>Linke<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/stmike\/tg-bot-smart-thoughts\"><b><i>Kodi n\u00eb GitHub<\/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: Nj\u00eb hyrje p\u00ebr zhvilluesit<\/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>Donacionet<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"http:\/\/yasobe.ru\/na\/vui\"><img decoding=\"async\" alt=\"Krijojm\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud\" src=\"\/wp-content\/uploads\/2020\/02\/250f8765713080fcbbdaf56c04dc882f.png\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><br \/>\n<br \/>Burimi: <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 4.9.10 - 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 \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\" \/>\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\/sq\/blog\/stroim-telegram-bot-v-yandeks-oblake\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"sq_AL\" \/>\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 \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\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sq\/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\udd47Duke nd\u00ebrtuar nj\u00eb Telegram-bot n\u00eb Yandex.Cloud | ProHoster","description":"Sot, me materialet q\u00eb kemi n\u00eb dispozicion, do t\u00eb nd\u00ebrtom\u00eb nj\u00eb Telegram-bot n\u00eb Yandex.Cloud duke p\u00ebrdorur Yandex Cloud Functions (ose funksionet Yandex \u2014 p\u00ebr shkak t\u00eb shkurtimit) dhe Yandex Object Storage (ose Ruajtja Objekte \u2014 p\u00ebr qart\u00ebsi). Kodi do t\u00eb jet\u00eb n\u00eb Node.js. Megjithat\u00eb, ekziston nj\u00eb rrethan\u00eb e \u00ebm\u00ebt \u2014 nj\u00eb organizat\u00eb e quajtur, le t\u00eb themi, RossKomCenzur (censura \u00ebsht\u00eb e ndaluar nga neni 29 i Kushtetut\u00ebs s\u00eb RF), nuk lejon operator\u00ebt e internetit","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/stroim-telegram-bot-v-yandeks-oblake","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sq_AL","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 \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","og:url":"https:\/\/prohoster.info\/sq\/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"},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/41315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/comments?post=41315"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/41315\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media\/41316"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=41315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=41315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=41315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}