// Python Dev

Telegram bot for voice pranks

Published on 2026-03-26

Client task

An existing prank bot needed a new feature: the user picks a prepared phrase, enters a phone number, and the robot places a call, plays the phrase, and sends the recorded response back to Telegram.

What was delivered

  • • Integrated SIP telephony through MikoPBX: the bot starts the call, plays the selected phrase, records the response, and sends the audio back to the user in chat.
  • • Added a second mode using Telegram's built-in calling capabilities as a cheaper alternative to SIP where technically possible.
  • • Implemented monetization through Telegram Stars.
  • • The new functionality was integrated into an existing legacy codebase while gradually cleaning it up during development.

Result

The client received a monetizable voice-prank service with multiple call channels, automatic response recording, and delivery of the result back to the user inside Telegram.

This project was not about starting from scratch, but about evolving an already existing product without interrupting its operation. The main focus was on telephony integration, media return to Telegram, and careful work with legacy code that could not simply be rewritten from zero.

As a result, the bot gained a new commercially useful scenario and a built-in monetization path using native platform tools.

Stack:
#Python #aiogram #MikoPBX #Asterisk #Telegram Stars

New request

Submit a request

Confirm that you are not a bot.