BotVerse by Ravi
157 subscribers
32 photos
4 videos
4 files
63 links
Explore the BotVerse! Updates, insights, and creations from Ravi's world of bots.

Support Chat: @BotVerseRaviSupport
Support Bot: @BotVerseRavi_bot

t.me/boost/BotVerseRavi
Download Telegram
๐Ÿš€ Build Your Own Telegram Support Bot

Build your own Telegram bot that lets users message the admin, and the admin reply back to them privately through the bot. No more missed DMs or untraceable users โ€” pure 1:1 support experience!

๐Ÿง  Command Name: *

๐Ÿงช Full Code:
ADMIN_CHAT_ID = "0123456789" # replace the value with your User ID

if message.text == "/start":
bot.sendMessage(
chat_id=message.chat.id,
text="๐Ÿ‘‹ Send your message, our team will respond soon.",
reply_to_message_id=message.message_id
)

elif message.chat.id == int(ADMIN_CHAT_ID):
if message.reply_to_message:
orig_msg_id = str(message.reply_to_message.message_id)
user_id = Bot.getData("reply_user_" + orig_msg_id)

if user_id:
try:
bot.sendMessage(
chat_id=int(user_id),
text=message.text
)
except:
bot.sendMessage(
chat_id=ADMIN_CHAT_ID,
text="โŒ Failed to send",
reply_to_message_id=message.message_id
)
else:
bot.sendMessage(
chat_id=ADMIN_CHAT_ID,
text="โš ๏ธ User not found for this reply.",
reply_to_message_id=message.message_id
)

else:
try:
sent = bot.forwardMessage(
chat_id=ADMIN_CHAT_ID,
from_chat_id=message.chat.id,
message_id=message.message_id
)
Bot.saveData("reply_user_" + str(sent.message_id), str(message.chat.id))
except:
pass

How It Works:
- Users send messages to the bot
- Bot forwards to the admin
- Admin replies to that message โ€” and bot sends it back to the user


๐Ÿ›  Posted by:
@BotVerseRavi

#TPY #TeleBotPython #TeleBotCreator #TBC #BotVerseRavi
3๐Ÿ‘2๐Ÿ”ฅ1๐Ÿคฉ1
Forwarded from BotVerse by Ravi
๐Ÿš€ Build Your Own Telegram Support Bot

Build your own Telegram bot that lets users message the admin, and the admin reply back to them privately through the bot. No more missed DMs or untraceable users โ€” pure 1:1 support experience!

๐Ÿง  Command Name: *

๐Ÿงช Full Code:
ADMIN_CHAT_ID = "0123456789" # replace the value with your User ID

if message.text == "/start":
bot.sendMessage(
chat_id=message.chat.id,
text="๐Ÿ‘‹ Send your message, our team will respond soon.",
reply_to_message_id=message.message_id
)

elif message.chat.id == int(ADMIN_CHAT_ID):
if message.reply_to_message:
orig_msg_id = str(message.reply_to_message.message_id)
user_id = Bot.getData("reply_user_" + orig_msg_id)

if user_id:
try:
bot.sendMessage(
chat_id=int(user_id),
text=message.text
)
except:
bot.sendMessage(
chat_id=ADMIN_CHAT_ID,
text="โŒ Failed to send",
reply_to_message_id=message.message_id
)
else:
bot.sendMessage(
chat_id=ADMIN_CHAT_ID,
text="โš ๏ธ User not found for this reply.",
reply_to_message_id=message.message_id
)

else:
try:
sent = bot.forwardMessage(
chat_id=ADMIN_CHAT_ID,
from_chat_id=message.chat.id,
message_id=message.message_id
)
Bot.saveData("reply_user_" + str(sent.message_id), str(message.chat.id))
except:
pass

How It Works:
- Users send messages to the bot
- Bot forwards to the admin
- Admin replies to that message โ€” and bot sends it back to the user


๐Ÿ›  Posted by:
@BotVerseRavi

#TPY #TeleBotPython #TeleBotCreator #TBC #BotVerseRavi
๐Ÿ”ฅ3๐Ÿ‘11