Conventional electronic devices that use Infrared (IR) and Radio Frequency (RF) technologies are generally not connected to the internet and therefore require separate remote controls for individual devices. This study aims to design and implement an ESP32-based IoT gateway capable of learning, storing, and retransmitting IR and 433 MHz RF signals to control electronic devices through a Telegram Bot. The system consists of a 38-pin ESP32 board, a KY-022 IR receiver, a KY-005 IR transmitter, and a CC1101 RF module. Learned signals are stored in the LittleFS file system as raw data, along with the signal parameters required for retransmission. Testing covered functional performance, signal learning, signal retransmission, operating range, and response time using televisions, air conditioners, and fans (IR-controlled devices), as well as switches and bells (RF-controlled devices). The results show that all bot commands operated as expected, with a 100% signal-learning success rate and a 96% signal-retransmission success rate. The lowest retransmission success rate was observed for air conditioners (80%), due to the complexity of their raw signal data. The maximum successful control range was 5 meters for IR and 8 meters for RF, with average response times of 1–2 seconds for IR and 1–3 seconds for RF. The proposed system offers a simple and low-cost alternative for integrating conventional electronic devices into an IP network. However, its current limitations include incompatibility with rolling-code-based RF systems and the absence of chat ID-based access restrictions.