{"id":194,"date":"2021-11-11T12:34:52","date_gmt":"2021-11-11T11:34:52","guid":{"rendered":"https:\/\/www.davidestebanmunoz.com\/?p=194"},"modified":"2021-12-30T21:40:23","modified_gmt":"2021-12-30T20:40:23","slug":"metro-bilbao-telegram-bot","status":"publish","type":"post","link":"https:\/\/www.davidestebanmunoz.com\/?p=194","title":{"rendered":"Metro Bilbao Telegram Bot"},"content":{"rendered":"<p><a href=\"https:\/\/www.davidestebanmunoz.com\/?p=202&amp;lang=es\">Este art\u00edculo se puede leer en castellano aqui<\/a><br \/>\nThis telegram bot is accessible at<a href=\"http:\/\/t.me\/metrobilbao_bot\"> http:\/\/t.me\/metrobilbao_bot<\/a><\/p>\n<p>The objective of this bot is to have REAL TIME\u00a0 information about the next trains for a given journey. It also allows to get timetables information for the next 24 hours<\/p>\n<p>The interaction with the user is based on telegram commands, and accepts both text entered stations or your location(telegram provided) so it will offer you the nearest 3 stations.<\/p>\n<p>It allows you to save 2 favourite journeys so you can get next trains just entering one command<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-195\" src=\"https:\/\/www.davidestebanmunoz.com\/wp-content\/uploads\/2021\/12\/metrobot-229x300.png\" alt=\"\" width=\"229\" height=\"300\" srcset=\"https:\/\/www.davidestebanmunoz.com\/wp-content\/uploads\/2021\/12\/metrobot-229x300.png 229w, https:\/\/www.davidestebanmunoz.com\/wp-content\/uploads\/2021\/12\/metrobot.png 474w\" sizes=\"auto, (max-width: 229px) 100vw, 229px\" \/><\/p>\n<p>Its architecture is formed by just a MariaDB container and a Python container<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-196 aligncenter\" src=\"https:\/\/www.davidestebanmunoz.com\/wp-content\/uploads\/2021\/12\/telegram_bot.drawio-300x187.png\" alt=\"\" width=\"300\" height=\"187\" srcset=\"https:\/\/www.davidestebanmunoz.com\/wp-content\/uploads\/2021\/12\/telegram_bot.drawio-300x187.png 300w, https:\/\/www.davidestebanmunoz.com\/wp-content\/uploads\/2021\/12\/telegram_bot.drawio.png 451w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>pyTelegramBotAPI Python library has been used for handling telegram requests and MariaDB DB has been used for storaging station coordinates and names and user favourite journeys.<\/p>\n<p>It makes use of Euskotren and Metro Bilbao non public APIs and is the ONLY available tool\u00a0 that allows you to planificate a journey using lines 1, 2 and 3 of Metro Bilbao.<\/p>\n<ul>\n<li>Type: Telegram Bot<\/li>\n<li>Where: Docker containers on VPS<\/li>\n<li>Languages and technologies used: Python, MySQL<\/li>\n<li>Github repo: no<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.davidestebanmunoz.com\/?p=194\">Read More<span class=\"screen-reader-text\">Metro Bilbao Telegram Bot<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[38,49,52,81],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry","category-personal-projects","tag-docker-en","tag-python","tag-sql","tag-telegram","excerpt"],"_links":{"self":[{"href":"https:\/\/www.davidestebanmunoz.com\/index.php?rest_route=\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.davidestebanmunoz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.davidestebanmunoz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.davidestebanmunoz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.davidestebanmunoz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=194"}],"version-history":[{"count":5,"href":"https:\/\/www.davidestebanmunoz.com\/index.php?rest_route=\/wp\/v2\/posts\/194\/revisions"}],"predecessor-version":[{"id":206,"href":"https:\/\/www.davidestebanmunoz.com\/index.php?rest_route=\/wp\/v2\/posts\/194\/revisions\/206"}],"wp:attachment":[{"href":"https:\/\/www.davidestebanmunoz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.davidestebanmunoz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.davidestebanmunoz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}