Using of a cloud technologies for automatic sending of notifications in Telegram

Authors

DOI:

https://doi.org/10.31498/2225-6733.47.2023.299990

Keywords:

cloud environment, AWS EC2, instance, messaging, Telegram API, Python, automation, Telethon

Abstract

The article discusses the issue of automating the distribution of messages in the Telegram messenger using cloud technologies. The general problem of sending messages through several channels is described. An overview of the latest research and publications of modern messaging technologies in Telegram was made, libraries, frameworks and modern patterns were analyzed. A method of using the capabilities of AWS EC2 to create a scalable and reliable solution for automated message distribution is proposed. The process of creating a program according to the proposed method is described in detail. Its architecture and interaction of modules are described. The architecture is structured to encapsulate different functions, each of which serves a specific purpose in the larger context of automated message distribution on the Telegram platform. The characteristics of the selected AWS service, the selected operating system, the programming language and the used libraries are given. The use of automatic scaling in AWS is demonstrated, which automates the configuration of resources based on predefined criteria and provides an effective solution for handling demand fluctuations and maintaining optimal system performance. Python programming language and Telethon library are used. The interaction of AWS EC2 with the Telegram API and the use of the Asynchronous Message Forwarding module to organize the processing of several channels at the same time are shown. The features of the program are described – setting up Telegram accounts, searching for messages, automated forwarding to several channels and other actions. The results of tests of the developed program are shown, which show that the automation of the process of sending messages increases the speed of their delivery to a large number of chats by 120 seconds, which is 40 times more effective, and its resource consumption is less than the resource consumption of ordinary client telegrams in 5 times

Author Biographies

A.V. Serhiienko, State Higher Education Institution "Priazovskyi state technical university", Dnipro

PhD (Engineering)

P.S. Yefimov, State Higher Education Institution "Priazovskyi state technical university", Dnipro

Master's student

E.O. Obydennyi, Dnipro University of Technology, Dnipro

Assistant

L.V. Beshta, Dnipro University of Technology, Dnipro

Assistant

References

Liu K., Dong L.-J. Research on cloud data storage technology and its architecture implementation. Procedia Engineering. 2012. Vol. 29. Pp. 133-137. DOI: https://doi.org/10.1016/j.proeng.2011.12.682.

Amazon Web Services. AWS Elastic Compute Cloud (EC2): Documentation and User Guides. 2021. URL: https://aws.amazon.com/ec2/documentation/ (дата звернення: 18.04.2023).

Artificial intelligence in information systems research: A systematic literature review and research agenda / Collins C., Dennehy D., Conboy K., Mikalef P. International Journal of Infor-mation Management. 2021. Vol. 60. Pp. 1-17. DOI: https://doi.org/10.1016/j.ijinfomgt.2021.102383.

What is Telegram Messenger. 2018. URL: https://medium.com/@telegramguide/what-is-telegram-messenger-c079418e1f10 (дата звернення: 25.04.2023).

TelegramClient. URL: https://doc.esdoc.org/github.com/dot-build/telegram-js/class/src/telegram-client.js~TelegramClient.html (дата звернення: 05.02.2023).

amazon.aws.ec2_instance module – Create & manage EC2 instances. AWS Documentation. URL: https://docs.ansible.com/ansible/latest/collections/amazon/aws/ec2_instance_module.html (дата звернення: 23.04.2023).

Faisandier A., Roedler G., Adcock R. System Architecture. SEBoK. URL: https://sebokwiki.org/wiki/System_Architecture (дата звернення: 30.04.2023).

Telethon’s Documentation. URL: https://docs.telethon.dev/en/stable (дата звернення: 07.05.2023).

Python Standard Library. Python 3.12.2 documentation. URL: https://docs.python.org/3/library/ (дата звернення: 07.05.2023).

Tmux. Ubuntuusers. URL: https://wiki.ubuntuusers.de/tmux/ (дата звернення: 15.05.2023).

Published

2023-12-28

How to Cite

Serhiienko, A. ., Yefimov, P. ., Obydennyi, E. ., & Beshta, L. . (2023). Using of a cloud technologies for automatic sending of notifications in Telegram. Reporter of the Priazovskyi State Technical University. Section: Technical Sciences, (47), 135–142. https://doi.org/10.31498/2225-6733.47.2023.299990