AI-powered signal listener and binary options trader.
Built for PocketOption. Controlled via Telegram. Powered by Python. Inspired by the legendary T-34 tank β strong, precise, unstoppable
T34 is a fully automated trading system that connects Telegram signals with PocketOption to execute binary options trades seamlessly.
This project was built out of real-life necessity β top-tier trading signals like Youseff's are consistent and valuable, but they require constant monitoring, with sessions spread across the entire day. Thatβs nearly 24 hours of attention daily β tough for those of us busy building our future.
So instead of missing out or burning out, I automated the grind.
T34 handles:
- π© Listening to Telegram signals
- π― Executing trades via the PocketOption API
- π Managing sessions, risk, and balance updates
- π¬ Sending clear reports and status notifications
No more sleepless nights staring at charts β let the bot do the boring work while you focus on your dreams.
More technical breakdowns and setup guides are below.
Pocket Option does not provide any official API for automating trading tasks. Automated bots are not allowed on their platform, and using one may lead to account suspension or banning.
This project uses an unofficial API:
PocketOptionAPI-v2
Iβve tested it on both Demo and Real accounts, and it works β but:
π₯ I am not responsible for how you use this bot.
You're fully accountable for your actions. The code is provided under an open license for educational purposes only.
Any misuse, ban, loss of funds, or violation of PocketOptionβs terms is 100% your responsibility.
Trading binary options involves significant financial risk. While automation can improve consistency, it does not guarantee profits. You may lose all or part of your investment.
This tool was built to reduce manual workload β not to promise financial returns.
π§ Always trade responsibly, manage your risk, and never invest money you can't afford to lose.
The heart of this project is a fully automated Telegram-based trading assistant that connects to Pocket Option via an unofficial API.
The bot is named T34, inspired by the legendary T-34 Russian tank, known for its precision and power β just like this bot aims to be in your trading game.
Feel free to name yours anything you want β Iβll show you how to do that later in the How to Use section.
- It listens to a specific Telegram channel (e.g.
Yousef Signals) for new trade alerts. - When a signal arrives in this format:
π°οΈ Sample Signal Format
Below is an example of the signal the bot is built to understand and trade automatically:
- The bot parses the message, converts the
entry timeto your local timezone, and schedules a trade. - When the entry time hits, the bot automatically places a trade on the Pocket Option platform.
- If the first trade loses, the bot executes up to 3 martingale levels (higher risk, higher stake) based on the strategy shared by the signal owner.
- It notifies you at each step with:
- β Trade placed (including pair, time, direction, and amount)
- β³ Waiting for entry
- π’ Win / π΄ Loss result for each trade
- π Total Profit/Loss
- π Daily report per session (Morning, Afternoon, Night, OverNight)
- π Account balance updates
- π Bot status (online/offline, active/inactive)
β οΈ You canβt use my Telegram bot, but you can build your own using this repo.
Iβll walk you through that process in the How to Use section.
To get your own version of the T34 bot up and running, follow these 4 major steps:
- Clone this repo
- Create your own Telegram Bot
- Get your Telegram API credentials
- Grab your PocketOption SSID
β Make sure you have Python 3.9+ and git 2.39 installed.
Depending on your system:
git clone https://github.com/Badzoneyv4n/T34.git
cd t34
python -m venv .venv
source .venv/Scripts/activate
pip install -r requirements.txtgit clone https://github.com/Badzoneyv4n/T34.git
cd t34
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtIn the root folder of the project, create a new file named .env: you can run
touch .envor create it manually
Then open it and paste this config structure:
BOT_TOKEN=
Tel_API_ID=
Tel_API_HASH=
Tel_CHAT_ID=
PO_SSID=
DEMO=False
TZ=Weβll show you how to fill these values in the next sections.
Keep this.env file private β never upload it publicly.
To run T34, you first need a Telegram bot. Here's how to create one in less than 2 minutes:
-
Open Telegram and search for π
@BotFather -
Click
Startto open the BotFather menu. -
Tap on
/newbotand follow the prompts:- First, type a name for your bot (e.g.,
T34 Boss) - Then choose a unique username that ends in
bot(e.g.,t34_boss_bot)
- First, type a name for your bot (e.g.,
-
BotFather will give you a token like: 123456789:ABCdEfGhIjKlMnOpQrStUvWxYz123456789
- Copy that token and paste it inside your
.envfile like this:
BOT_TOKEN=123456789:ABCdEfGhIjKlMnOpQrStUvWxYz123456789Use the following BotFather commands to make your bot more professional:
/setdescription β Choose your bot and add a short intro (e.g., βT34 automates trades on PocketOption based on Telegram signals.β)
/setabouttext β Choose your bot and write a longer bio (e.g., βBuilt by BadZone to follow Youseff signals automatically.β)
/setuserpic β Upload a nice profile pic for your bot (any cool avatar or T34 logo)
/setcommands β Set the command list. Just copy and paste this:
start - Start T34 bot
menu - Get the menu buttons
status - Get the status of the bot
report - Get report about sessions
activate - Activate the bot and api
deactivate - Stop the bot from trading
Once you're done, check your bot in Telegram search. Pin it to your top chats so you can access it easily while trading.
So you can properly configure the .env file.
-
Go to Telegram Developer Portal π Open this link in your browser: https://my.telegram.org/auth
-
Login with your Telegram account
-
Once logged in, click on βAPI Development Toolsβ
-
Fill in the form:
App title: Choose any name (e.g., T34BotApp)
Short name: (e.g., t34)
You donβt need to fill the URL fields
- Click Create application
Once created, Telegram will show you:
API ID
API HASH
π Copy both values and paste them in your .env file like so:
Tel_API_ID=your_api_id_here
Tel_API_HASH=your_api_hash_here-
Search this bot in Telegram: @userinfobot
-
Click Start
-
It will show first,Lang and User ID (
β οΈ This is what we need β copy it)
π Now update your .env file:
Tel_CHAT_ID=your_user_id_hereNow youβre good to go with both API_ID, API_HASH, and CHAT_ID.
To allow the bot to log in and trade on your PocketOption account, youβll need to extract your SSID (session cookie) from the platform.
β οΈ Important Notice: PocketOption does not provide any official API, and using automated tools may violate their terms of service. > You are 100% responsible for how you use this information.
We won't explain it here for security and legal reasons, but you can:
-
π Search for: How to get PocketOption SSID on youtube
-
π Or go to the official unofficial API used in this project: π https://github.com/Mastaaa1987/PocketOptionAPI-v2
Inside that GitHub repo, look for the file: π How to get SSID.docx in the root folder. It contains detailed instructions with screenshots on how to extract your SSID manually.
You can choose to trade using either:
-
π§ͺ Demo Account (fake balance)
-
πΈ Real Account (actual money β high risk!)
To set this in the bot, we added a new flag in your .env file:
DEMO=FalseIf you retrieved a demo account ssid set DEMO=True else leave it as False to trade on real account. Make sure you configure these settings well, otherwise the bot won't trade.
Once your environment is ready and your session is activated, you're one step away from launching your fully automated T34 bot.
python run.pyThis command will:
Start the Telegram listener that watches for Youseff's signals
Start the PocketOption API worker that handles trades
Start the Bot manager that processes and filters duplicates
Start the Telegram Bot (T34 interface with command panel)
Start the Auto Reporter that summarizes session results
T34 uses Telethon to listen to signals from Telegram. You donβt need to manually generate the session file β itβs done automatically the first time the bot starts.
π§ This step only happens once unless the session file is deleted.
When T34 launches, it runs the Telegram listener in the background. This will:
-
Prompt you to log in using your phone number
-
Ask for the verification code from Telegram
-
Save a secure session file called:
t34_session.session
The first time it runs, it will prompt:
π± Your phone number
π A code sent to your Telegram app
Paste it in the console
Once completed, the session is saved, and you won't be asked again.
β From now on, the bot listens to the signals silently in the background.
This file will be created in the project root. It allows T34 to access the channel without logging in again.
-
β The bot uses your main Telegram account (not a bot token) to read signals from the channel
@youseftraderofficial. This means you must be a member of the channel for the bot to work. -
π The bot trades binary options via PocketOption based on signal messages posted in that Telegram channel.
-
π§ More channels will be added soon. To request support for your favorite signal channel, message @newvey on Telegram.
-
π You can now set your own timezone in the
.envfile to make sure trade scheduling is accurate no matter where you are.
To make sure the bot trades exactly at the right local time β you can now set the timezone manually.
In your .env file, add this new key:
TZ=Africa/LagosYou can replace Africa/Lagos with your own timezone name. For example:
America/New_YorkEurope/LondonAsia/DubaiAfrica/Lagos
Check this list of timezones if you're not sure what yours is.
Once set, all trades will be converted from the signalβs default timezone (UTC-4/New York) to yours.
β This improves accuracy and ensures no more late entries or missed trades.
If you're serious about keeping your bot online 24/7, Docker is your best friend. It's a tool that helps you package your entire project β code, libraries, dependencies β into a single container that runs reliably on any system.
. β Portable β Works the same on any OS (Windows, macOS, Linux, cloud VPS).
. β Isolated β Keeps your bot separate from your main system.
. β Auto-Restart β If the system crashes or reboots, Docker can bring your bot back up.
. β Easy to deploy β Once built, just one command starts your bot.
. β Lightweight β Based on python:3.11-slim for minimal footprint.
Your bot already includes a Dockerfile with:
Required system dependencies (build-essential, libpq-dev)
Installation of all Python packages from requirements.txt
Copying your bot files and .env file
Starting the bot using python run.py
π Dockerfile is already provided in the repo root.
1. Install Docker If you don't have Docker installed: (Install Docker for Linux) (Install Docker Desktop for Windows/macOS)
2. Build the Docker Image Inside the project folder, run:
docker build -t yourbotname:1.01 .This will create a Docker image tagged as yourbotname:1.01. The name you call it doesn't matter just know that you will keep using the same name
3. Run the Container Start your bot using:
docker run --env-file .env --name containername --restart always yourbotname:1.01. --env-file .env: Loads environment variables into the container
. --name containername: Gives the container a name
. --restart always: Ensures the bot auto-restarts on crash or reboot
4. π¦ Publishing to DockerHub (Optional) If you want to share your bot publicly or deploy on a remote server:
#if you don't have podman installed you can replace it with docker
# Login
podman login docker.io
# Username: your_username
# Password: <your_password>
# Tag your image
podman tag localhost/yourbotname:1.01 docker.io/yourusername/yourbotname:1.01
# Push it
podman push docker.io/yourusername/yourbotname:1.01Once pushed, anyone can pull your bot like:
docker pull yourusername/yourbotname:1.01This project is for educational and testing purposes only.
The PocketOption API used here is unofficial and may violate their Terms of Service.
Use at your own risk β you are responsible for any financial loss or account ban.
Always test with demo accounts before risking real money.
This project is licensed under the Apache License 2.0.
Copyright 2025 BadZone
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at (Apache)
Stay stealth, trade smart β T34. π«‘β¨



