{"id":36921,"date":"2019-10-31T22:14:43","date_gmt":"2019-10-31T19:14:43","guid":{"rendered":"https:\/\/prohoster.info\/blog\/zhabogram-2-0-transport-iz-jabber-v-telegram\/"},"modified":"2019-10-31T22:14:43","modified_gmt":"2019-10-31T19:14:43","slug":"zhabogram-2-0-transport-iz-jabber-v-telegram","status":"publish","type":"post","link":"https:\/\/prohoster.info\/en\/blog\/news\/zhabogram-2-0-transport-iz-jabber-v-telegram","title":{"rendered":"Zhabogram 2.0 \u2014 bridge from Jabber to Telegram","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Zhabogram \u2014 a bridge (gateway) from the Jabber (XMPP) network to the Telegram network, written in Ruby. The successor to tg4xmpp.<\/p>\n<ul>\n<li>\n<p>Dependencies<\/p>\n<ul>\n<li>Ruby &gt;= 1.9<\/li>\n<li>xmpp4r == 0.5.6<\/li>\n<li>tdlib-ruby == 2.0 with compiled tdlib == 1.3<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Capabilities<\/p>\n<ul>\n<li>Authorization in an existing Telegram account<\/li>\n<li>Syncing chat list with roster<\/li>\n<li>Syncing contact statuses with roster<\/li>\n<li>Adding and removing Telegram contacts<\/li>\n<li>Support for VCard with avatars<\/li>\n<li>Sending, receiving, editing, and deleting messages<\/li>\n<li>Handling quotes and forwarded messages<\/li>\n<li>Sending and receiving files and special messages (support for photos, videos, audio, documents, voice messages, stickers, animations, locations, system messages)<\/li>\n<li>Support for secret chats<\/li>\n<li>Creating, managing, and moderating chats\/supergroups\/channels<\/li>\n<li>Session preservation and automatic reconnection when logging into XMPP<\/li>\n<li>Retrieving history and searching through messages<\/li>\n<li>Managing Telegram account<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Notable changes before version 1.0, news of which was not available on LOR:<\/p>\n<ul>\n<li>Added handling of SIGINT with proper closure of all sessions<\/li>\n<li>Support for iq:jabber:register (user registration), iq:jabber:gateway (contact search) added (and later removed)<\/li>\n<p><noindex><\/p>\n<li>Long struggles with the profiler in Ruby until we understood that tdlib was leaking (developers closed the bug with WONTFIX \u2014 <a rel=\"nofollow\" href=\"https:\/\/github.com\/tdlib\/td\/issues\/148\">it's a feature<\/a>)<\/li>\n<p><\/noindex>\n<\/ul>\n<\/li>\n<li>\n<p>Changes before version 2.0:<\/p>\n<ul>\n<li>Added support for OTR (if Zhabogram is used on both sides \u2014 don't ask.)<\/li>\n<li>Using YAML serialization instead of sqlite3 for saving sessions.<\/li>\n<li>Automatic time zone detection removed due to some clients not following the protocol and sending junk<\/li>\n<li>Authorization (subscription) requests from public channels, from which a forwarded message was sent, but you are not a subscriber, have been fixed<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Changes in version 2.0<\/p>\n<ul>\n<li>NB! Backward compatibility of config file and session file is broken (to support individual settings in the future).<\/li>\n<li>Code rewritten 80% \u2014 it is now significantly more readable. Internal logic has been tidied up.<\/li>\n<li>Number of requests to Telegram reduced by three times<\/li>\n<li>Removed jabber:iq:register, jabber:iq:gateway<\/li>\n<li>Commands rewritten \u2014 now they are different for chats and for the transport itself (system functions). To get the list of commands, send the command \/help.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>To install, you will need your own Jabber server. It is recommended to obtain the API ID and API HASH from Telegram for more stable operation. A detailed guide can be found in the README.md file.<\/p>\n<p>Source: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"http:\/\/www.linux.org.ru\/news\/opensource\/15155442\">linux.org.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>Zhabogram \u2014 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442 (\u043c\u043e\u0441\u0442, \u0448\u043b\u044e\u0437) \u0438\u0437 \u0441\u0435\u0442\u0438 Jabber (XMPP) \u0432 \u0441\u0435\u0442\u044c Telegram, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 Ruby. \u041f\u0440\u0435\u0435\u043c\u043d\u0438\u043a tg4xmpp. \u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 Ruby &gt;= 1.9 xmpp4r == 0.5.6 tdlib-ruby == 2.0 \u0441 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c tdlib == 1.3 \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435 Telegram \u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0447\u0430\u0442\u043e\u0432 \u0441 \u0440\u043e\u0441\u0442\u0435\u0440\u043e\u043c \u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432 \u0441 \u0440\u043e\u0441\u0442\u0435\u0440\u043e\u043c \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 Telegram-\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432 \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 VCard \u0441 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-36921","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Zhabogram \u2014 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442 (\u043c\u043e\u0441\u0442, \u0448\u043b\u044e\u0437) \u0438\u0437 \u0441\u0435\u0442\u0438 Jabber (XMPP) \u0432 \u0441\u0435\u0442\u044c Telegram, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 Ruby.\" \/>\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\/en\/blog\/news\/zhabogram-2-0-transport-iz-jabber-v-telegram\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\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\udd47Zhabogram 2.0 \u2014 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442 \u0438\u0437 Jabber \u0432 Telegram | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"Zhabogram \u2014 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442 (\u043c\u043e\u0441\u0442, \u0448\u043b\u044e\u0437) \u0438\u0437 \u0441\u0435\u0442\u0438 Jabber (XMPP) \u0432 \u0441\u0435\u0442\u044c Telegram, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 Ruby.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/en\/blog\/news\/zhabogram-2-0-transport-iz-jabber-v-telegram\" \/>\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=\"2019-10-31T19:14:43+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:14:43+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\udd47Zhabogram 2.0 \u2014 transport from Jabber to Telegram | ProHoster","description":"Zhabogram \u2014 a transport (bridge, gateway) from the Jabber (XMPP) network to the Telegram network, written in Ruby.","canonical_url":"https:\/\/prohoster.info\/en\/blog\/news\/zhabogram-2-0-transport-iz-jabber-v-telegram","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","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\udd47Zhabogram 2.0 \u2014 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442 \u0438\u0437 Jabber \u0432 Telegram | ProHoster","og:description":"Zhabogram \u2014 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442 (\u043c\u043e\u0441\u0442, \u0448\u043b\u044e\u0437) \u0438\u0437 \u0441\u0435\u0442\u0438 Jabber (XMPP) \u0432 \u0441\u0435\u0442\u044c Telegram, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 Ruby.","og:url":"https:\/\/prohoster.info\/en\/blog\/news\/zhabogram-2-0-transport-iz-jabber-v-telegram","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":"2019-10-31T19:14:43+00:00","article:modified_time":"2019-10-31T19:14:43+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"36921","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":"2026-01-22 05:20:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:36:24","updated":"2026-01-22 05:20:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/36921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/comments?post=36921"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/36921\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media?parent=36921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/categories?post=36921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/tags?post=36921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}