TIGRAY TECH 🖥💻
28.4K subscribers
775 photos
88 videos
59 files
395 links
CRYPTOCURRENCY

SCRIPT'S

AIRDROPS

MOD APPS

Owner: @mesobsupport

Buy ads: https://telega.io/c/TigrayTechcc
Download Telegram
🔹FORCE CHANNEL JOIN BOT

import telebot
from telebot.types import ReplyKeyboardMarkup, KeyboardButton

# Replace with your bot token and channel username
BOT_TOKEN = "YOUR_BOT_TOKEN"
CHANNEL_USERNAME = "@YourChannel"

bot = telebot.TeleBot(BOT_TOKEN)

@bot.message_handler(commands=['start'])
def start(message):
user_id = message.from_user.id
if is_user_member(user_id):
send_main_menu(message.chat.id)
else:
send_join_prompt(message.chat.id)

def is_user_member(user_id):
try:
member = bot.get_chat_member(CHANNEL_USERNAME, user_id)
return member.status in ['member', 'administrator', 'creator']
except:
return False

def send_join_prompt(chat_id):
markup = ReplyKeyboardMarkup(resize_keyboard=True)
markup.add(KeyboardButton(" Joined"))
bot.send_message(chat_id, f"Please join our channel {CHANNEL_USERNAME} to use this bot!", reply_markup=markup)

@bot.message_handler(func=lambda message: message.text == " Joined")
def joined(message):
user_id = message.from_user.id
if is_user_member(user_id):
bot.send_message(message.chat.id, "Thank you for joining! Here's the main menu:")
send_main_menu(message.chat.id)
else:
bot.send_message(message.chat.id, f"You haven't joined {CHANNEL_USERNAME} yet! Please join and try again.")

def send_main_menu(chat_id):
markup = ReplyKeyboardMarkup(resize_keyboard=True)
markup.add(KeyboardButton("🏆 Claim Gift"), KeyboardButton("💰 Balance"))
markup.add(KeyboardButton("📤 Withdraw"), KeyboardButton("📞 Support"))
bot.send_message(chat_id, "Welcome to the main menu! Choose an option:", reply_markup=markup)

bot.polling()


#python #language

🙂 Must join our Channel @TIGRAYTECHC

Give Reactions fast and share post else no more bot codes 💧
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥15👍11🫡31
This media is not supported in your browser
VIEW IN TELEGRAM
3 months course in a single video;) 🔥

#python #coding

@TIGRAYTECHC | @TIGRAYTECHC
16🔥5🤣4👍3
This media is not supported in your browser
VIEW IN TELEGRAM
python for visualization is crazy 😁

#python #coding

@TIGRAYTECHC | @TIGRAYTECHC
👍10🔥31