Telegram Bot - Event Planning Assistant

Hello :)



I want to show you my development and really wanted this thing to become useful not only to me and my environment, but to all-all-all.



image






And right to the point. This is a telegram bot. It is called this: EventPlannerChecker



By this name you can find it by searching in a telegram.



What is he doing and who can come in handy? I will tell you by my example why I did it and why I started to apply it.



I like to play soccer and am in different groups in vibers and telegrams, where different people come together to play football together. And usually collecting in such groups is quite simple:

-Guys, today we play, the time is 20:00, the field is such and such. We put the pros and cons.


And then the pros, cons, discussions of the future game and so on begin to pour in the chat. How many people get to the event is important not only to the organizer. Many players decide whether to go or not, depending on how many people have already responded and who responded. And you start to count the pros, cons, try to understand who is coming and who is not, and you are doing this more than once in all the time that people are gathering for the event.



I think many have come across this, who at least once somewhere in groups gathered, or gathered himself with someone's help for some kind of event.



And recently I got into another football group, in which the guys gathered for the event with the help of a bot. He was able to accept the reactions of the group members and display these reactions in a special message.



It seemed to me very convenient, but I noticed a number of shortcomings that this bot created with its work. And since the guys were IT specialists, I suggested that they make some changes to the bot code to make it more convenient. And it turned out that this was just some kind of third-party bot, the code of which the guys had nothing to do and could not edit.



Well, since I was already dealing with bots, I realized - this is my chance to do something else useful and practical for this world :)



Now salt:



The event is created very simply. You write the bot command:



/event  
      
      





The name must be indicated, as bot does not want to create empty events.



He has principles :)



Example on the screen:



image



Regarding security, I have already been asked a question, so I will write right away. The privacy of the bot is set so that it does not have access to messages in the group. He receives only those messages that are addressed personally to him and the reaction to the callbacks under the message.



You may ask: β€œWhy are there so many buttons with check marks, crosses, pluses and minuses?”.



I cover all possible options for your participation in the event:





Written in java, spinning on Amazon.



You can communicate with the bot in PM, it will also create messages for you with events. But he begins to benefit when you add him to the group.



Well, I hope that the scope of the bot will not be limited only to football groups. He knows how to gather people for any events :)



I would be grateful for any feedback and suggestions :)



UPDATE from 11.11.19

Often in PM they ask how to make this bot work in channels.

Here there is a nuance in the work of the telegram with the channels.

The bot does not receive messages that you post to the channel.

And since he does not see messages, he will not be able to work with them. He cannot create an event in automatic mode.



Alternatively, you can make a variant of the command that will send the created event purposefully to the specified channel name. I'll think about it and maybe add such a function.



At the moment, the bot can only work in groups / chats.



All Articles