Comments in the telegram channel

 3r3145. 3r3-31. Familiarity with the telegram bots came out messy - at work it was necessary to get ahead of the team of colleagues, and knowing the internal API well, the bot was written in a few days (later modified and received [/i] ) Telegram verify badge 3r3133.  3r3145.
 3r3145. Following the results, two bots were written (main and mailing), on which the management calmed down, and I started samizdat.
 3r3145.
 3r3145. Once again, playing around with a prototype, I wanted to think that you can quickly write something else interesting in the telegram stack. The choice fell on the comments.
 3r3145.
 3r3145.
 3r3145.
 3r3145.
3r3122. Bot @CommentsUserBot for comments in the telegram channel [/i] 3r3124.
 3r3145. There are channels in the telegram, but you cannot comment on them, and there are chats where you cannot write news — you will receive all spam messages or nothing if you leave 3r3122. mute 3r3123. .
 3r3145.
 3r3145.
3r3122. Although, if you do in the pin chat with an alert, you can emulate the publication of aka in #channel. [/i] 3r3124.
 3r3145. 3r340.
 3r3145.
 3r3145. After some thought, I went to read the documentation for telegra.ph . I already had to write a parser for news to the corporate site for IV, and I had an idea about what widgets existed on the platform (3r312? however, some did not start up 3r?123.). Also, in the bot developer community, I learned a few non-public APIs that came in handy later.
 3r3145.
 3r3145. Everything looked clear, and over the weekend I sketched a prototype of a comment bot to the telegram channel - a button clung to the post, going to the bot to write the text, and then generating the comments page in the telegraph. In the channel itself, the button should show the number of comments.
 3r3145.
 3r3145. Comments in the telegram channel
 3r3145.
 3r3145.
3r3122. Technically, the server works only at the time of the publication of comments. All the rest - text and graphics - is stored and cached by the telegraph itself. [/i] 3r3124.
 3r3145. After stuffing the developers for testing, I collected a feedback, sketched a plan and began to quietly gash the changes. So, initially, the automatic update mode of the channel was changed by the settings (manual or auto, the replacement of the original post or the publication of comments and posts). The comments themselves were replenished with widgets, graphics, and video (3r3-3122. Thanks to Oleg O. for testing vulnerabilities. By the way, he also has a nice comment-bot @CommentsBot 3r3123.) 3r3133.  3r3145.
 3r3145.
3r3122. At that time I installed telegram-x, and one of the important updates in it was that, once registered in the bot, you do not need to press start each time you enter from the deep link. [/i] 3r3124.
 3r3145. Comments, since the flat chat already exists, it was decided to make a tree. I did not write such storage before, but after a couple of bulky articles the database was able to digest them. The current limiting depth of branches is 10 levels. The number of comments per page 2? with a pre-show answers in the branches, the number of comments and pagination.
 3r3145.
 3r3145. Yes, the telegraph does not allow to turn around with the design of the page, but that was exactly what was needed - a bot in 3r3122. ecosystem telegram [/i] - there are no additional authorizations and exits to the sites. The fonts will not fly, and the comment pages themselves will work through Instant View . The user himself fills the comment in the usual format, in a telegram - with emoticons, stickers, links and other things.
 3r3145.
 3r3145. Editing is replaced by the addition of the current comment. In general, this is still enough, because you can delete your own comment (3r3122. Directly from the comments page 3r3123.) 3r3133.  3r3145.
 3r3145. 3r3398.
 3r3145.
 3r3145. Then, when the bot wanted to use large channels (3r3122.> 100k subscribers 3r?123.), The question of administration arose. The deletion of an unwanted comment and user ban has been added. Also, due to personal dislike of spam, response alerts are turned off by default for the user, but the settings allow you to subscribe to both comments and channel /post comments, plus a choice of comments level. All this comes from a separate bot-spammer, so by blocking it by the unknowing telegram interface, you can still write comments in other channels.
 3r3145.
 3r3145. Zadizaynenaya in gimpe icon is painted for all entities of the project - bot, alert bot, news of the project and chat support.
 3r3145.
 3r3145. About language interfaces: pages in the telegraph in r3r3122. en [/i] , and bots in 3r3122. en /ru 3r3123. (auto-detect works).
 3r3145.
 3r3145.
3r3122. Comments are very much in South America. Now the good Samaritans are translating githubs for more localization. [/i] 3r3124.
 3r3145. In the spring (summer?), When the RKN began blocking accesses, I felt a bit uncomfortable to develop (on the train, on the way to /c work — double ssh to the server periodically falls off), so the development rate (and without that) was lowered. Now I collect reviews, make plans for improvements and write from time to time another bot, whose work I will need in the current project.
 3r3145.
 3r3145. Bot @CommentsUserBot for comments in the telegram channel.
 3r3145.
 3r3145. Get connected, write, discuss)
3r3145. 3r3145. 3r3138. ! function (e) {function t (t, n) {if (! (n in e)) {for (var r, a = e.document, i = a.scripts, o = i.length; o-- ;) if (-1! == i[o].src.indexOf (t)) {r = i[o]; break} if (! r) {r = a.createElement ("script"), r.type = "text /jаvascript", r.async =! ? r.defer =! ? r.src = t, r.charset = "UTF-8"; var d = function () {var e = a.getElementsByTagName ("script")[0]; e.parentNode.insertBefore (r, e)}; "[object Opera]" == e.opera? a.addEventListener? a.addEventListener ("DOMContentLoaded", d,! 1): e.attachEvent ("onload", d ): d ()}}} t ("//mediator.mail.ru/script/2820404/"""_mediator") () ();
3r3145. 3r3141. 3r3145. 3r3145. 3r3145. 3r3145.
+ 0 -

Comments 2

Offline
Peolersler
Peolersler 12 November 2018 13:58
Some time individuals confront numerous troubles in various doctor's facilities with their patients. This homeworkforme.com blog writer share great and most ideal path for those individuals who confront inconveniences in doctor's facilities now they can come here and discover their issues arrangements.
Offline
Zeiggerf
Zeiggerf 13 November 2018 07:24
Telegram channel is a very popular channel on internet.people do a lot of tasks here and also learn a lot from its https://www.topreviewstars.com/dissertation-writing-service/.The reader are very impressed by this site so like this blog.

Add comment