{"id":8742,"date":"2025-01-06T00:45:12","date_gmt":"2025-01-05T21:45:12","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/"},"modified":"2025-01-06T00:45:12","modified_gmt":"2025-01-05T21:45:12","slug":"nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/","title":{"rendered":"NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2)"},"content":{"rendered":"<p><body><\/p>\n<p>NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2)<\/p>\n<p>Merhaba!  Ge\u00e7en b\u00f6l\u00fcmde NodeJS, TypeScript, Telegraf ve Fastify kullanarak temel bir Telegram botu olu\u015fturmay\u0131 \u00f6\u011frendik.  Bu b\u00f6l\u00fcmde ise,  botumuza daha geli\u015fmi\u015f \u00f6zellikler ekleyecek,  hata y\u00f6netimini iyile\u015ftirecek ve  kod kalitesini art\u0131raca\u011f\u0131z.  \u00d6nceki b\u00f6l\u00fcmde olu\u015fturdu\u011fumuz temeli  burada geni\u015fletece\u011fiz.  Bu sayede botunuzun daha sa\u011flam ve kullan\u0131\u015fl\u0131 olaca\u011f\u0131n\u0131 g\u00f6receksiniz.<\/p>\n<p>\u00d6ncelikle,  kullan\u0131c\u0131 giri\u015fini daha g\u00fcvenli hale getirmek i\u00e7in bir do\u011frulama mekanizmas\u0131 eklemeliyiz.  Bunun i\u00e7in,  kullan\u0131c\u0131 adlar\u0131n\u0131 veya benzersiz kimlik bilgilerini kullanarak bir veritaban\u0131na kaydedebiliriz.  Bu veritaban\u0131 i\u015flemleri i\u00e7in  TypeORM gibi bir ORM kullanman\u0131z \u00f6nerilir.  TypeORM,  TypeScript ile uyumlu olup veritaban\u0131 etkile\u015fimlerini kolayla\u015ft\u0131r\u0131r.  Ayr\u0131nt\u0131l\u0131 bilgi i\u00e7in <a href=\"https:\/\/typeorm.io\/\">TypeORM resmi d\u00f6k\u00fcmanlar\u0131na<\/a> g\u00f6z atabilirsiniz.  Bu i\u015flem,  botunuzu sadece yetkili ki\u015filer taraf\u0131ndan kullan\u0131lmas\u0131n\u0131 sa\u011flayarak g\u00fcvenli\u011fi art\u0131racakt\u0131r.<\/p>\n<p>Daha sonra,  hata y\u00f6netimine odaklanmal\u0131y\u0131z.  Beklenmedik hatalar\u0131n olu\u015fmas\u0131 durumunda,  kullan\u0131c\u0131ya anla\u015f\u0131l\u0131r bir hata mesaj\u0131 g\u00f6stermek \u00f6nemlidir.  Ayr\u0131ca,  hata g\u00fcnl\u00fc\u011f\u00fcn\u00fc tutarak  sorunun kayna\u011f\u0131n\u0131 tespit etmemiz kolayla\u015f\u0131r.  Bunun i\u00e7in  Winston gibi bir logging k\u00fct\u00fcphanesi kullanabiliriz. Winston,  hata kay\u0131tlar\u0131n\u0131 farkl\u0131 yollarla (konsol, dosya vb.)  kaydetmemizi sa\u011flar.  Hatalar\u0131 yakalamak ve do\u011fru \u015fekilde y\u00f6netmek,  botunuzun istikrar\u0131 i\u00e7in hayati \u00f6nem ta\u015f\u0131r.  Bu sayede olu\u015fabilecek aksakl\u0131klar\u0131 minimumda tutabilirsiniz.  Ayr\u0131nt\u0131l\u0131 bilgi i\u00e7in <a href=\"https:\/\/www.npmjs.com\/package\/winston\">Winston paketinin d\u00f6k\u00fcmanlar\u0131na<\/a> g\u00f6z atabilirsiniz.<\/p>\n<p>Botumuzun daha da geli\u015fmi\u015f olmas\u0131n\u0131 sa\u011flamak i\u00e7in,  birka\u00e7 ek \u00f6zellik ekleyebiliriz.  \u00d6rne\u011fin,  bir komut i\u015fleme sistemi olu\u015fturabilir ve  her komutu ayr\u0131 bir fonksiyonda i\u015fleyebiliriz. Bu, kodun daha d\u00fczenli ve bak\u0131m\u0131 daha kolay olmas\u0131n\u0131 sa\u011flar.  Ayr\u0131ca,  kullan\u0131c\u0131lar\u0131n botla daha etkile\u015fimli bir deneyim ya\u015famas\u0131n\u0131 sa\u011flamak i\u00e7in,  inline butonlar veya \u00f6zel tu\u015flar gibi aray\u00fcz elemanlar\u0131n\u0131 kullanabilirsiniz. Telegraf k\u00fct\u00fcphanesi bu gibi aray\u00fcz elemanlar\u0131n\u0131 entegre etmeyi olduk\u00e7a kolayla\u015ft\u0131r\u0131r.<\/p>\n<h2>Kod \u00d6rne\u011fi (Hata Y\u00f6netimi):<\/h2>\n<pre><code class=\"language-typescript\">\nimport { Telegraf } from 'telegraf';\nimport { ContextMessageUpdate } from 'telegraf\/typings\/context';\n\nconst bot = new Telegraf(process.env.BOT_TOKEN!);\n\nbot.catch((err) => {\n  console.error('Telegraf hatas\u0131:', err);\n});\n\nbot.on('text', async (ctx: ContextMessageUpdate) => {\n  try {\n    \/\/ Kodunuz buraya gelir...\n  } catch (error) {\n    console.error('Komut i\u015fleme hatas\u0131:', error);\n    await ctx.reply('\u00dczg\u00fcn\u00fcm, bir hata olu\u015ftu. L\u00fctfen daha sonra tekrar deneyin.');\n  }\n});\n\nbot.launch();\n<\/code><\/pre>\n<p>Bu b\u00f6l\u00fcmde,  Telegram botunuzu geli\u015ftirmek i\u00e7in \u00f6nemli ad\u0131mlar\u0131 inceledik.  Hata y\u00f6netimi ve g\u00fcvenlik gibi kritik konulara de\u011findik.  Unutmay\u0131n ki,  kod kalitesi ve d\u00fczenli g\u00fcncellemeler botunuzun uzun \u00f6m\u00fcrl\u00fc olmas\u0131 i\u00e7in \u00f6nemlidir.  Gelecek b\u00f6l\u00fcmlerde,  daha geli\u015fmi\u015f konular\u0131 ele alaca\u011f\u0131z. Daha fazla bilgi ve \u00f6rnekler i\u00e7in <a href=\"https:\/\/fatihsoysal.com\">web sitemi<\/a> ziyaret edebilirsiniz.<\/p>\n<p>Umar\u0131m bu makale yard\u0131mc\u0131 olmu\u015ftur.  Herhangi bir sorunuz varsa,  yorum b\u00f6l\u00fcm\u00fcnde bana ula\u015fabilirsiniz.<\/p>\n<p>#Etiketler: Telegram Bot, NodeJS, TypeScript, Telegraf, Fastify, Hata Y\u00f6netimi, G\u00fcvenlik, Geli\u015ftirme, Programlama, Tutorial, Rehber<\/p>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2) Merhaba! Ge\u00e7en b\u00f6l\u00fcmde NodeJS, TypeScript, Telegraf&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_page_header_type":"","csco_page_load_nextpost":"","csco_page_subscribe_form":"","csco_page_contact_form":"","footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-8742","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-genel","7":"cs-entry","8":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2)<\/title>\n<meta name=\"description\" content=\"Merhaba! Ge\u00e7en b\u00f6l\u00fcmde NodeJS, TypeScript, Telegraf ve Fastify kullanarak temel bir Telegram botu olu\u015fturmay\u0131 \u00f6\u011frendik. Bu b\u00f6l\u00fcmde ise, botumuza daha geli\u015fmi\u015f \u00f6zellikler ekleyecek, hata y\u00f6netimini iyile\u015ftirecek ve kod kalitesini art\u0131raca\u011f\u0131z. \u00d6nceki b\u00f6l\u00fcmde olu\u015fturdu\u011fumuz temeli burada geni\u015fletece\u011fiz. Bu sayede botunuzun daha sa\u011flam ve kullan\u0131\u015fl\u0131 olaca\u011f\u0131n\u0131 g\u00f6receksiniz.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2)\" \/>\n<meta property=\"og:description\" content=\"Merhaba! Ge\u00e7en b\u00f6l\u00fcmde NodeJS, TypeScript, Telegraf ve Fastify kullanarak temel bir Telegram botu olu\u015fturmay\u0131 \u00f6\u011frendik. Bu b\u00f6l\u00fcmde ise, botumuza daha geli\u015fmi\u015f \u00f6zellikler ekleyecek, hata y\u00f6netimini iyile\u015ftirecek ve kod kalitesini art\u0131raca\u011f\u0131z. \u00d6nceki b\u00f6l\u00fcmde olu\u015fturdu\u011fumuz temeli burada geni\u015fletece\u011fiz. Bu sayede botunuzun daha sa\u011flam ve kullan\u0131\u015fl\u0131 olaca\u011f\u0131n\u0131 g\u00f6receksiniz.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-05T21:45:12+00:00\" \/>\n<meta name=\"author\" content=\"Fatih Soysal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fatih Soysal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2)\",\"datePublished\":\"2025-01-05T21:45:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/\"},\"wordCount\":494,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/\",\"name\":\"NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2)\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-01-05T21:45:12+00:00\",\"description\":\"Merhaba! Ge\u00e7en b\u00f6l\u00fcmde NodeJS, TypeScript, Telegraf ve Fastify kullanarak temel bir Telegram botu olu\u015fturmay\u0131 \u00f6\u011frendik. Bu b\u00f6l\u00fcmde ise, botumuza daha geli\u015fmi\u015f \u00f6zellikler ekleyecek, hata y\u00f6netimini iyile\u015ftirecek ve kod kalitesini art\u0131raca\u011f\u0131z. \u00d6nceki b\u00f6l\u00fcmde olu\u015fturdu\u011fumuz temeli burada geni\u015fletece\u011fiz. Bu sayede botunuzun daha sa\u011flam ve kullan\u0131\u015fl\u0131 olaca\u011f\u0131n\u0131 g\u00f6receksiniz.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/\",\"name\":\"Fatihsoysal.com\",\"description\":\"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim\",\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\",\"name\":\"Fatih Soysal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"contentUrl\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"width\":512,\"height\":512,\"caption\":\"Fatih Soysal\"},\"logo\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2)","description":"Merhaba! Ge\u00e7en b\u00f6l\u00fcmde NodeJS, TypeScript, Telegraf ve Fastify kullanarak temel bir Telegram botu olu\u015fturmay\u0131 \u00f6\u011frendik. Bu b\u00f6l\u00fcmde ise, botumuza daha geli\u015fmi\u015f \u00f6zellikler ekleyecek, hata y\u00f6netimini iyile\u015ftirecek ve kod kalitesini art\u0131raca\u011f\u0131z. \u00d6nceki b\u00f6l\u00fcmde olu\u015fturdu\u011fumuz temeli burada geni\u015fletece\u011fiz. Bu sayede botunuzun daha sa\u011flam ve kullan\u0131\u015fl\u0131 olaca\u011f\u0131n\u0131 g\u00f6receksiniz.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/","og_locale":"tr_TR","og_type":"article","og_title":"NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2)","og_description":"Merhaba! Ge\u00e7en b\u00f6l\u00fcmde NodeJS, TypeScript, Telegraf ve Fastify kullanarak temel bir Telegram botu olu\u015fturmay\u0131 \u00f6\u011frendik. Bu b\u00f6l\u00fcmde ise, botumuza daha geli\u015fmi\u015f \u00f6zellikler ekleyecek, hata y\u00f6netimini iyile\u015ftirecek ve kod kalitesini art\u0131raca\u011f\u0131z. \u00d6nceki b\u00f6l\u00fcmde olu\u015fturdu\u011fumuz temeli burada geni\u015fletece\u011fiz. Bu sayede botunuzun daha sa\u011flam ve kullan\u0131\u015fl\u0131 olaca\u011f\u0131n\u0131 g\u00f6receksiniz.","og_url":"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-01-05T21:45:12+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"3 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2)","datePublished":"2025-01-05T21:45:12+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/"},"wordCount":494,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/","url":"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/","name":"NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2)","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-01-05T21:45:12+00:00","description":"Merhaba! Ge\u00e7en b\u00f6l\u00fcmde NodeJS, TypeScript, Telegraf ve Fastify kullanarak temel bir Telegram botu olu\u015fturmay\u0131 \u00f6\u011frendik. Bu b\u00f6l\u00fcmde ise, botumuza daha geli\u015fmi\u015f \u00f6zellikler ekleyecek, hata y\u00f6netimini iyile\u015ftirecek ve kod kalitesini art\u0131raca\u011f\u0131z. \u00d6nceki b\u00f6l\u00fcmde olu\u015fturdu\u011fumuz temeli burada geni\u015fletece\u011fiz. Bu sayede botunuzun daha sa\u011flam ve kullan\u0131\u015fl\u0131 olaca\u011f\u0131n\u0131 g\u00f6receksiniz.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/nodejs-typescript-telegraf-ve-fastify-ile-kendi-telegram-botunuzu-olusturun-bolum-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"NodeJS, TypeScript, Telegraf ve Fastify ile Kendi Telegram Botunuzu Olu\u015fturun (B\u00f6l\u00fcm 2)"}]},{"@type":"WebSite","@id":"https:\/\/fatihsoysal.com\/blog\/#website","url":"https:\/\/fatihsoysal.com\/blog\/","name":"Fatihsoysal.com","description":"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim","publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":["Person","Organization"],"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1","name":"Fatih Soysal","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","contentUrl":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","width":512,"height":512,"caption":"Fatih Soysal"},"logo":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/"},"description":"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.","url":"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/"}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/8742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/comments?post=8742"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/8742\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=8742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=8742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=8742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}