{"id":3998,"date":"2019-10-26T07:18:50","date_gmt":"2019-10-26T07:18:50","guid":{"rendered":"https:\/\/puvox.software\/blog\/?p=3998"},"modified":"2021-11-14T13:45:48","modified_gmt":"2021-11-14T13:45:48","slug":"select-all-delete-all-messages-in-telegram","status":"publish","type":"post","link":"https:\/\/puvox.software\/blog\/select-all-delete-all-messages-in-telegram\/","title":{"rendered":"Delete\/Select All Telegram messages"},"content":{"rendered":"<div class=\"default-content-clss content_3998 type_post \"><h1><img fetchpriority=\"high\" decoding=\"async\" class=\"size-medium wp-image-3999 aligncenter\" src=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/telegram-select-all-300x183.png\" alt=\"\" width=\"300\" height=\"183\" srcset=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/telegram-select-all-300x183.png 300w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/telegram-select-all-400x244.png 400w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/10\/telegram-select-all.png 410w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/h1>\n<h1 style=\"text-align: center;\">Delete all messages in Channel \/ Group<\/h1>\n<blockquote><p><span style=\"color: #ff0000;\">The script was working in 2019. Use the script at your own risk! After execution, ensure (refresh page) that you don&#8217;t delete messages from another channel accidentally.<\/span><\/p><\/blockquote>\n<p>In <a href=\"https:\/\/telegram.org\">telegram<\/a> channel or group, <strong>Select all<\/strong> messages functionality doesn&#8217;t exist.<br \/>\nHowever, it can be done by Browser script. First, copy the below code:<\/p>\n<ul>\n<li>\n<pre>avascript:(function(){$($(\".im_history_selected_wrap .im_history_messages .im_history_messages_peer:not(.ng-hide)  .im_message_outer_wrap\").get().reverse()).each(function(e, el){ if (e&gt;99) return; el.click(); }); }());<\/pre>\n<\/li>\n<\/ul>\n<ul>\n<li>Go to <a href=\"https:\/\/web.telegram.org\">web.telegram.org<\/a> (don&#8217;t open multiple Telegram tabs).<\/li>\n<li>Open <strong>that specific Channel\/Group<\/strong> where you want to select all messages.<\/li>\n<li>Click the browser address bar, type letter <code>j<\/code> and then paste the copied script &amp; press <strong style=\"font-size: inherit;\">ENTER<\/strong><span style=\"font-size: inherit;\">.\u00a0\u00a0<\/span><\/li>\n<\/ul>\n<p>That&#8217;s all, all messages will be selected, and you can do whatever you want : <strong>DELETE<\/strong> \/ <strong>FORWARD<\/strong> ,etc&#8230;<span style=\"font-size: inherit;\">\u00a0<\/span><span style=\"color: #ff0000;\">(NOTE: it works only for <strong>100<\/strong> items per api)<\/span><span style=\"color: #ff0000;\">.<\/span><\/p>\n<p>_______<\/p>\n<p><em>YOU CAN EVEN MAKE BOOKMARK WITH THAT URL and place it in your browser&#8217;s bookmarks bar. <\/em><span style=\"font-size: inherit;\">\u00a0<\/span><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<div class=\"default-content-clss excerpt_3998 type_post \"><p>Delete all messages in Channel \/ Group The script was working in 2019. Use the script at your own risk! After execution, ensure (refresh page) that you don&#8217;t delete messages<a class=\"excerpt-read-more\" href=\"https:\/\/puvox.software\/blog\/select-all-delete-all-messages-in-telegram\/\">(Continue Reading)<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":3999,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[10,13],"tags":[],"class_list":["post-3998","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-browser","category-website"],"_links":{"self":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/3998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/comments?post=3998"}],"version-history":[{"count":0,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/3998\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media\/3999"}],"wp:attachment":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media?parent=3998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/categories?post=3998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/tags?post=3998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}