How to Connect Bf Bot Manager to Telegram

WHY CONNECT BFBM TO TELEGRAM?

Get Telegram alerts for:

  1. Bets placed/settled
  2. Tip import success/failure
  3. Bot P/L updates

SETUP

NB: Only works in “Real” mode. Only works with Telegram “Groups”.

Telegram messages are only sent if Bf Bot Manager is in REAL mode.

Three things are necessary to enable Telegram messages:

1 A telegram bot token that gives BFBM permission to send messages to your Telegram account.

2 A telegram Group ID that tells BFBM which Telegram Group to send messages to.

3. Add your Telegram Bot to your Chat Group as an Administrator.

Getting a Telegram Bot Token

First you need to create a bot by using the setup wizard BotFather at Telegram.

  1. Enter “@botfather” (one word) in the search bar of your Telegram app.
  1. Type “/start” in the chat bar. This will show a menu of commands.

3. Type “/newbot” or click the “/newbot” link in the menu of commands.

 

4. Type a name for your bot in the chat bar. Press enter.

 

4. Type a username for your bot in the chat bar. The bot username must end in “bot”. Press enter.

6. The bot has been created and Telegram gives you a message that includes the Telegram bot “token”. Also, click on the Bot Name and click “Start” at the bottom of the bot to start it.

7. Copy the Telegram bot token and paste it into Bf Bot Manager in the TOOLS & SETTINGS > Third party integrations > Telegram form.

Getting a Telegram Group ID

  1. Select the menu on the top left of the Telegram app.
  1. Select “New Group” from the menu on the top left of the Telegram app.
  1. Enter a group name and click “Next”.
  1. Click “Create”. It will give you a chance to add members, but you do not need to add anyone. You are automatically added as the first member. Just click “Create”.
  1. Your group will now be created and appear in your list on the left.
  1. Next, to get your Group ID, enter “Get Chat ID bot” or “@InstantChatIDBot” in the search bar.

 

  1. Click “Start”.
  1. Click “Private Group” from the menu to get your Group ID.

If you do not know if your Group is public or private, then click on the top-right menu and select “Manage group”. The Manage Group menu will tell you if your Group is public or private.

  1. After clicking “Private Group” from the “Get Chat ID Bot” menu, select the Group name from the list that you want to get the Group ID for.
  1. Click “Send” when prompted.
  1. The bot will display the Group ID. It is a number that begins with a minus sign “-“. Copy this Group ID to paste into your Bf Bot Manager strategy bot’s Telegram rule.
  1. Paste the Group ID into your Bf Bot Manager strategy bot’s Telegram rule.

Make your bot Administrator of the Telegram Group

  1. Add the bot created by the BotFather (e.g. “MyBFBMbot”) to your chat group (e.g. “My BFBM Bets”) as an Administrator. (This allows the bot to post messages to this chat group.)

GET BET ALERTS

  1. Add the “Telegram integration” rule to the bot that you want to get alerts from.
  1. Choose what kind of alerts you want.

Bet Placed? (Publish information about Initial bets)

Result? (Publish information about settled bets)

  1. Edit the data you want sent using the curly bracket placeholder text

Stake size? {BET_SIZE}

Which bot? {STRATEGY_NAME}

 

Example Alert Format:

Initial Bet

Bet Result

Bot: {STRATEGY_NAME}

Start Time: {START_TIME}

Stake: {BET_SIZE}

Selection: {SELECTION_NAME}

Odds requested: {PRICE}

 

Bet Type: {BET_TYPE}

Tipster: {TIPSTER_NAME}

Event: {EVENT_NAME}

Competition: {COMPETITION_NAME}

Country: {COUNTRY_CODE}

Market: {MARKET_NAME}

Bot: {STRATEGY_NAME}

Start Time: {START_TIME}

Stake: {BET_SIZE}

Bet Result (Market P/L): {PROFIT_LOSS}

Selection: {SELECTION_NAME}

Odds requested: {PRICE}

 

Bet Type: {BET_TYPE}

Tipster: {TIPSTER_NAME}

Event: {EVENT_NAME}

Competition: {COMPETITION_NAME}

Country: {COUNTRY_CODE}

Market: {MARKET_NAME}

GET PROFIT/LOSS UPDATES

  1. Select what kind of P/L updates you want.
  2. Format the message to the data you want.

“Publish overall strategy profit/loss at selected time” example

“Publish daily strategy profit/loss at selected time” example

Bot: {STRATEGY_NAME}

Overall P/L: {STRATEGY_PROFIT_LOSS} at {TIME}.

Bot: {STRATEGY_NAME}

Daily P/L: {STRATEGY_PROFIT_LOSS} at {TIME}.

ALERT DATA FORMATS

  • {START_TIME} – is replaced with market start time (hour and minute) e.g. 18:20
  • {EVENT_NAME} – is replaced with event name e.g. Chelsea v Arsenal or Bev 6th Jul
  • {MARKET_NAME} – is replaced with market name e.g. Match odds or 1m Hcap
  • {SELECTION_NAME} – is replaced with runner/selection name e.g. Chelsea or Bighearted for horse
  • {BET_TYPE} – is replaced with placed bet type e.g. BACK or LAY
  • {PRICE} – is replaced with placed bet matched decimal price e.g. 1.84
  • {BET_SIZE} – is replaced by placed bet size
  • {STRATEGY_NAME} – is replaced with this strategy name
  • {TIPSTER_NAME} – is replaced with provider/tipster name if bet is placed on imported tip
  • {PROFIT_LOSS} – is replaced with overall market profit/loss for this strategy
  • {COMPETITION_NAME} – is replaced with competition name
  • {VENUE} – is replaced with venue name
  • {COUNTRY_CODE} – ISO 2 letter country code
  • {MARKET_ID} – replaced by market ID number
  • {SELECTION_ID} – is replaced with selection ID number
  • {HANDICAP} – is replaced with handicap value
  • {EVENT_ID} – is replaced with event ID number
  • {MARKET_TYPE} – is replaced with market type
  • {PERCENT_OF_BETTING_BANK} – is replaced with the stake size expressed as a percentage of the betting bank from all staking plans that are connected to this strategy’s betting bank balance
  • {PROFIT_LOSS_PERCENT_OF_BETTING_BANK} – is replaced with the profit/loss expressed as a percentage of the betting bank
  • {BETTING_BANK} – is replaced with the betting bank value used by your staking plans

Messages about overall P/L only support EVENT_NAME, MARKET_NAME, STRATEGY_NAME, START_TIME and PROFIT_LOSS tags!

 

Messages are only published in real mode; it is not possible to publish messages from simulation mode!

TIP IMPORT STATUS UPDATES

Get alerts to tell you if a tip has been imported to the Manage Tips form and

A) Has successfully found its market

B) Has NOT successfully found and connected to its market.

  1. Add your Telegram Group ID to the MANAGE TIPS form’s SETTINGS.

Format the alert with curly bracket data placeholders that you want.

{SELECTION_NAME} – is replaced with runner/selection name e.g. Chelsea or Bighearted for horse

{SELECTION_ID} – is replaced with selection ID number

{MARKET_NAME} – is replaced with market name e.g. Match odds or 1m Hcap

{MARKET_ID} – is replaced with market ID number

{EVENT_NAME} – is replaced with event name e.g. Chelsea v Arsenal or Bev 6th Jul

{EVENT_ID} – is replaced with event ID number

{START_TIME} – is replaced with market start time (hour and minute) e.g. 18:20

{PROVIDER) – is replaced with provider name

{CSV} – actual tip CSV content that was imported

Example alert format: Tip NOT imported Successfully

Example alert format: Tip imported Successfully

Failed to Received Tip text: {CSV}

 

Successfully Received Tip text: {CSV}

Imported tip Tipster name: {PROVIDER)

Imported tip Start time: {START_TIME}

Imported tip selection name: {SELECTION_NAME}

Imported tip selection ID {SELECTION_ID}

Imported tip market name {MARKET_NAME

Imported tip market ID: {MARKET_ID}

Imported tip event name: {EVENT_NAME}

Imported tip event ID: {EVENT_ID}

REMEMBER

  1. Bot Token (Make a bot, “Start” the bot.)
  2. Group ID (Make a group, get the ID.)
  3. Administrator (Add the Bot to the Group.)

 

  1. Paste the Telegram Bot Token into the BFBM Tools & Settings > Third Party Integrations > Telegram form.
  2. Paste the Telegram Group Chat ID into the BFBM Bot’s Safety Rule > Telegram Integration
  3. Add the Telegram Bot to the Telegram Group Chat as an Administrator.

 

BFBM SUPPORT SERVICE 1

BFBM SUPPORT SERVICE 2

60 minute 1-1 session for £60

  • BFBM training session
  • Screensharing to show how to use BFBM functions
  • Custom Bot Building
  • Your questions answered by a veteran BFBM user

 

Email to make an appointment: BettingSystemsGuide@gmail.com