Using of a cloud technologies for automatic sending of notifications in Telegram
DOI:
https://doi.org/10.31498/2225-6733.47.2023.299990Keywords:
cloud environment, AWS EC2, instance, messaging, Telegram API, Python, automation, TelethonAbstract
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
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).
Downloads
Published
How to Cite
Issue
Section
License
The journal «Reporter of the Priazovskyi State Technical University. Section: Technical sciences» is published under the CC BY license (Attribution License).
This license allows for the distribution, editing, modification, and use of the work as a basis for derivative works, even for commercial purposes, provided that proper attribution is given. It is the most flexible of all available licenses and is recommended for maximum dissemination and use of non-restricted materials.
Authors who publish in this journal agree to the following terms:
1. Authors retain the copyright of their work and grant the journal the right of first publication under the terms of the Creative Commons Attribution License (CC BY). This license allows others to freely distribute the published work, provided that proper attribution is given to the original authors and the first publication of the work in this journal is acknowledged.
2. Authors are allowed to enter into separate, additional agreements for non-exclusive distribution of the work in the same form as published in this journal (e.g., depositing it in an institutional repository or including it in a monograph), provided that a reference to the first publication in this journal is maintained.







