{"id":13943,"date":"2023-08-18T15:59:49","date_gmt":"2023-08-18T12:59:49","guid":{"rendered":"https:\/\/unihost.com\/help\/stworzenie-bota-na-telegramie-z-wykorzystaniem-openai-chatgpt-w-jezyku-python\/"},"modified":"2025-12-28T22:32:03","modified_gmt":"2025-12-28T19:32:03","slug":"openai-chatgtp-python","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/","title":{"rendered":"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python"},"content":{"rendered":"<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Tworzenie chatbot\u00f3w staje si\u0119 coraz bardziej popularne w \u015bwiecie technologii. S\u0105 one wykorzystywane w r\u00f3\u017cnych dziedzinach, pocz\u0105wszy od obs\u0142ugi klienta, a\u017c po edukacj\u0119 i medycyn\u0119. Niemniej jednak, rozwijanie chatbota mo\u017ce by\u0107 zadaniem do\u015b\u0107 wymagaj\u0105cym, wymagaj\u0105cym g\u0142\u0119bokiej wiedzy z zakresu programowania i sztucznej inteligencji. W tym artykule przyjrzymy si\u0119, jak u\u017cy\u0107 OpenAI ChatGPT do stworzenia bota na Telegramie opartego na j\u0119zyku Python, kt\u00f3ry b\u0119dzie komunikowa\u0107 si\u0119 z u\u017cytkownikami przy u\u017cyciu zwyk\u0142ego j\u0119zyka.<\/span><br \/>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><!--more--><\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Zawarto\u015b\u0107:<\/span><\/p>\n<ul>\n<li><span style=\"font-family: Ubuntu, sans-serif;\">Tworzenie konta OpenAI oraz klucza API<\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif;\">Tworzenie bota na Telegramie<\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif;\">Przygotowanie serwera, uruchamianie bota<\/span><\/li>\n<\/ul>\n<h2><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">1. Tworzenie konta i klucza API OpenAI<\/span><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Przejd\u017a na stron\u0119 <a href=\"https:\/\/openai.com\/api\/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">OpenAI<\/a> i stw\u00f3rz swoje konto. Mo\u017cesz si\u0119 zarejestrowa\u0107 podaj\u0105c adres e-mail lub kontynuowa\u0107, loguj\u0105c si\u0119 przez istniej\u0105ce konto Google lub Microsoft.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-13746 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?Screenshot-from-2023-02-23-12-07-01.png\" alt=\"\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f OpenAI\" width=\"566\" height=\"424\" \/ title=\"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python - Image 1\"><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Nast\u0119pnym krokiem jest wpisanie numeru, na kt\u00f3ry zostanie wys\u0142ana wiadomo\u015b\u0107 SMS w celu potwierdzenia.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Uwaga, OpenAI nie jest dost\u0119pne we wszystkich krajach. Zobacz: <a href=\"https:\/\/beta.openai.com\/docs\/supported-countries\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Supported countries and territories<\/a> link do listy obs\u0142ugiwanych kraj\u00f3w.<\/span><\/pre>\n<h2><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Tworzenie klucza API<\/span><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Kliknij na swoje awatar w prawym g\u00f3rnym rogu, a nast\u0119pnie wybierz opcj\u0119 <strong>View API Keys<\/strong>. Kliknij <strong>Create new secret Key<\/strong>, aby utworzy\u0107 klucz API, a nast\u0119pnie skopiuj go.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>Uwaga! <\/strong>Upewnij si\u0119, \u017ce zapiszesz ten klucz, poniewa\u017c nie b\u0119dziesz w stanie go skopiowa\u0107 przy kolejnym logowaniu. Je\u015bli go zgubisz, b\u0119dziesz musia\u0142 wygenerowa\u0107 nowy klucz.<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-13751 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?Screenshot-from-2023-02-23-12-17-22.png\" alt=\"OpenAI API key\" width=\"691\" height=\"551\" \/ title=\"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python - Image 2\"><\/span><\/p>\n<h2><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">2. Tworzenie bota na Telegramie<\/span><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">B\u0119dziemy u\u017cywa\u0107 specjalnego bota <a href=\"https:\/\/t.me\/BotFather\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">@BotFather<\/a> aby stworzy\u0107 bota na Telegramie. A wi\u0119c, aby stworzy\u0107 nowego bota, wykonaj poni\u017csz\u0105 komend\u0119<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\/newbot<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Nast\u0119pnie przypisz botowi nazw\u0119 i pseudonim \u2014 b\u0119dziesz m\u00f3g\u0142 go znale\u017a\u0107 w Telegramie za pomoc\u0105 tego pseudonimu. Pseudonim powinien by\u0107 unikalny, sk\u0142ada\u0107 si\u0119 z liter \u0142aci\u0144skich i ko\u0144czy\u0107 si\u0119 na &#8220;bot&#8221;. Dla naszego przyk\u0142adu, podajmy pseudonim <strong>&#8211; uni_chat_gpt_bot<\/strong><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Po utworzeniu bota, zobaczysz nast\u0119puj\u0105c\u0105 wiadomo\u015b\u0107<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13766 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?Screenshot-from-2023-02-23-13-42-15.png\" alt=\"telegram bot token\" width=\"522\" height=\"284\" \/ title=\"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python - Image 3\"><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Dla nas istotny jest token wygenerowany podczas tworzenia bota. B\u0119dziemy go u\u017cywa\u0107 w przysz\u0142o\u015bci do integracji z OpenAI ChatGPT.<\/span><\/p>\n<h2><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">3. Przygotowanie serwera, uruchamianie bota<\/span><\/h2>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">W tym przewodniku stworzymy prostego chatbota, u\u017cywaj\u0105c <a href=\"https:\/\/beta.openai.com\/docs\/models\/davinci\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Davinci<\/a> AI modelu do generowania odpowiedzi. To dok\u0142adny i kosztowny model, ale dzia\u0142a wolniej, poniewa\u017c operuje przy u\u017cyciu <a href=\"https:\/\/beta.openai.com\/docs\/guides\/embeddings\/what-are-embeddings\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">wielu danych<\/a>.\u00a0Mo\u017ce wykonywa\u0107 zadania wszystkich innych modeli, ale wymaga mniej wskaz\u00f3wek w sekcji &#8220;Instrukcje dla bota&#8221;.<\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">W sekcjach <a href=\"https:\/\/beta.openai.com\/examples\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Examples<\/a> oraz <a href=\"https:\/\/github.com\/openai\/openai-cookbook\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">OpenAI Cookbook<\/a> mo\u017cesz zobaczy\u0107 przyk\u0142ady wykorzystania modeli oraz eksperymentowa\u0107 z ustawieniami w narz\u0119dziu\u00a0 <a href=\"https:\/\/beta.openai.com\/playground\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Playground<\/a>.<\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Dla przyk\u0142adu w tym przewodniku, wybrali\u015bmy <a href=\"https:\/\/platform.openai.com\/examples\/default-friend-chat\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Friend chat<\/a> wzorzec, kt\u00f3rym jest emulacja konwersacji oparta na tek\u015bcie. Jako podstaw\u0119, we\u017amiemy \u017c\u0105danie API dla tego szablonu w j\u0119zyku Python, ale dostosujemy je do naszych wymaga\u0144.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Nadszed\u0142 czas, aby stworzy\u0107 i umie\u015bci\u0107 skrypt w j\u0119zyku Python na serwerze. B\u0119dziemy u\u017cywa\u0107 <a href=\"https:\/\/unihost.com\/vps\/\">VPS<\/a> opartego na systemie Ubuntu Server 20.04.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Logowanie do serwera za pomoc\u0105 SSH.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Domy\u015blnie Ubuntu Server 20.04 ju\u017c ma zainstalowan\u0105 wersj\u0119 3 j\u0119zyka Python.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Aby sprawdzi\u0107, wprowad\u017a poni\u017csz\u0105 komend\u0119<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">python3<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Odpowied\u017a:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Python 3.8.10 (default, Nov 14 2022, 12:59:47) <\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">[GCC 9.4.0] on linux<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">&gt;&gt;&gt;<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">To oznacza, \u017ce Python 3.8.10 jest ju\u017c zainstalowany na serwerze i mo\u017cemy przej\u015b\u0107 do kolejnego kroku<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Zainstaluj pip:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">apt install pip<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Zainstaluj niezb\u0119dne biblioteki dla naszego skryptu:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">pip install openai<\/span>\n\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">pip install pyTelegramBotAPI<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Stw\u00f3rz plik <em>main.py<\/em>:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">nano main.py<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Wstaw poni\u017cszy kod:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">import os<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">import openai<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">import telebot<\/span>\n\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">openai.api_key = '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'<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">bot = telebot.TeleBot('5868492437:AAHzr8E09ooGpXNw7lOf2On2K53FKz-ZTyc')<\/span>\n\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">@bot.message_handler(func=lambda _: True)<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">def handle_message(message):<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">response = openai.Completion.create(<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">model=\"text-davinci-003\",<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">prompt=message.text,<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">temperature=0.5,<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">max_tokens=60,<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">top_p=1.0,<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">frequency_penalty=0.5,<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">presence_penalty=0.0,<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">)<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">bot.send_message(chat_id=message.from_user.id, text=response['choices'][0]['text'])<\/span>\n\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">bot.polling()<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Gdzie,<\/span><\/p>\n<pre><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">openai.api_key = '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'\n\nAPI-key OpenAI<\/span><\/pre>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">bot = telebot.TeleBot('5868492437:AAHzr8E09ooGpXNw7lOf2On2K53FKz-ZTyc')\n\nTelegram chatbot API klusz\n<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Odpowiednio, musz\u0105 zosta\u0107 zast\u0105pione w\u0142asnymi danymi.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Uruchom skrypt<\/span><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">python3 main.py<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Je\u015bli nie zostan\u0105 wykryte \u017cadne b\u0142\u0119dy, mo\u017cesz przej\u015b\u0107 do testowania naszego bota na Telegramie. Aby to zrobi\u0107, musisz go znale\u017a\u0107 za pomoc\u0105 pseudonimu &#8211; <strong>uni_chat_gpt_bot<\/strong> i mo\u017cesz rozpocz\u0105\u0107 dialog:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13793 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?photo_2023-02-23_16-42-15.jpg\" alt=\"chatgpt bot\" width=\"551\" height=\"346\" \/ title=\"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python - Image 4\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tworzenie chatbot\u00f3w staje si\u0119 coraz bardziej popularne w \u015bwiecie technologii. S\u0105 one wykorzystywane w r\u00f3\u017cnych dziedzinach, pocz\u0105wszy od obs\u0142ugi klienta, a\u017c po edukacj\u0119 i medycyn\u0119. Niemniej jednak, rozwijanie chatbota mo\u017ce by\u0107 zadaniem do\u015b\u0107 wymagaj\u0105cym, wymagaj\u0105cym g\u0142\u0119bokiej wiedzy z zakresu programowania i sztucznej inteligencji. W tym artykule przyjrzymy si\u0119, jak u\u017cy\u0107 OpenAI ChatGPT do stworzenia bota [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[714],"tags":[788,789,787],"class_list":["post-13943","post","type-post","status-publish","format-standard","hentry","category-bez-kategorii","tag-chatgpt-pl","tag-openai-pl","tag-python-pl"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python<\/title>\n<meta name=\"description\" content=\"Ten przewodnik poka\u017ce ci, jak \u0142atwo stworzy\u0107 bota do czatowania na Telegramie z wykorzystaniem OpenAI w j\u0119zyku Python - Unihost.FAQ\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python\" \/>\n<meta property=\"og:description\" content=\"Ten przewodnik poka\u017ce ci, jak \u0142atwo stworzy\u0107 bota do czatowania na Telegramie z wykorzystaniem OpenAI w j\u0119zyku Python - Unihost.FAQ\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-18T12:59:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-28T19:32:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-from-2023-02-23-12-07-01.png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/pl\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python\",\"datePublished\":\"2023-08-18T12:59:49+00:00\",\"dateModified\":\"2025-12-28T19:32:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/\"},\"wordCount\":547,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/pl\/#organization\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-from-2023-02-23-12-07-01.png\",\"keywords\":[\"ChatGPT\",\"OpenAI\",\"python\"],\"articleSection\":[\"02. Serwery\"],\"inLanguage\":\"pl\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/\",\"url\":\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/\",\"name\":\"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/pl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-from-2023-02-23-12-07-01.png\",\"datePublished\":\"2023-08-18T12:59:49+00:00\",\"dateModified\":\"2025-12-28T19:32:03+00:00\",\"description\":\"Ten przewodnik poka\u017ce ci, jak \u0142atwo stworzy\u0107 bota do czatowania na Telegramie z wykorzystaniem OpenAI w j\u0119zyku Python - Unihost.FAQ\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#breadcrumb\"},\"inLanguage\":\"pl\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pl\",\"@id\":\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#primaryimage\",\"url\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-from-2023-02-23-12-07-01.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-from-2023-02-23-12-07-01.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/pl\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/pl\/#website\",\"url\":\"https:\/\/unihost.com\/help\/pl\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/pl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/pl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pl\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/pl\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/pl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl\",\"@id\":\"https:\/\/unihost.com\/help\/pl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/pl\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/pl\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl\",\"@id\":\"https:\/\/unihost.com\/help\/pl\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/pl\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python","description":"Ten przewodnik poka\u017ce ci, jak \u0142atwo stworzy\u0107 bota do czatowania na Telegramie z wykorzystaniem OpenAI w j\u0119zyku Python - Unihost.FAQ","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:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/","og_locale":"pl_PL","og_type":"article","og_title":"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python","og_description":"Ten przewodnik poka\u017ce ci, jak \u0142atwo stworzy\u0107 bota do czatowania na Telegramie z wykorzystaniem OpenAI w j\u0119zyku Python - Unihost.FAQ","og_url":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2023-08-18T12:59:49+00:00","article_modified_time":"2025-12-28T19:32:03+00:00","og_image":[{"url":"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-from-2023-02-23-12-07-01.png","type":"","width":"","height":""}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/pl\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python","datePublished":"2023-08-18T12:59:49+00:00","dateModified":"2025-12-28T19:32:03+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/"},"wordCount":547,"publisher":{"@id":"https:\/\/unihost.com\/help\/pl\/#organization"},"image":{"@id":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-from-2023-02-23-12-07-01.png","keywords":["ChatGPT","OpenAI","python"],"articleSection":["02. Serwery"],"inLanguage":"pl"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/","url":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/","name":"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python","isPartOf":{"@id":"https:\/\/unihost.com\/help\/pl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#primaryimage"},"image":{"@id":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-from-2023-02-23-12-07-01.png","datePublished":"2023-08-18T12:59:49+00:00","dateModified":"2025-12-28T19:32:03+00:00","description":"Ten przewodnik poka\u017ce ci, jak \u0142atwo stworzy\u0107 bota do czatowania na Telegramie z wykorzystaniem OpenAI w j\u0119zyku Python - Unihost.FAQ","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#breadcrumb"},"inLanguage":"pl","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/"]}]},{"@type":"ImageObject","inLanguage":"pl","@id":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#primaryimage","url":"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-from-2023-02-23-12-07-01.png","contentUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-from-2023-02-23-12-07-01.png"},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/pl\/openai-chatgtp-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/pl\/"},{"@type":"ListItem","position":3,"name":"Stworzenie bota na Telegramie z wykorzystaniem OpenAI ChatGPT w j\u0119zyku Python"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/pl\/#website","url":"https:\/\/unihost.com\/help\/pl\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/pl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/pl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pl"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/pl\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/pl\/","logo":{"@type":"ImageObject","inLanguage":"pl","@id":"https:\/\/unihost.com\/help\/pl\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/pl\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/pl\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"pl","@id":"https:\/\/unihost.com\/help\/pl\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/pl\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/pl\/wp-json\/wp\/v2\/posts\/13943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/pl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/pl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/pl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/pl\/wp-json\/wp\/v2\/comments?post=13943"}],"version-history":[{"count":7,"href":"https:\/\/unihost.com\/help\/pl\/wp-json\/wp\/v2\/posts\/13943\/revisions"}],"predecessor-version":[{"id":19586,"href":"https:\/\/unihost.com\/help\/pl\/wp-json\/wp\/v2\/posts\/13943\/revisions\/19586"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/pl\/wp-json\/wp\/v2\/media?parent=13943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/pl\/wp-json\/wp\/v2\/categories?post=13943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/pl\/wp-json\/wp\/v2\/tags?post=13943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}