OpenSimWorld is the directory of 3D Virtual Worlds based on OpenSimulator and connected through the HyperGrid. Learn More

💬 Chat





Let your users contact you for two-way conversation through telegram for instant help access.

Creating a script to allow in-world users of OpenSimulator to chat with a channel on Telegram requires the use of HTTP requests. This involves creating a bot on Telegram that can receive and send messages, and an LSL script in Second Life to interact with this bot.

Step 1: Create a Telegram Bot
Open Telegram and search for BotFather.
Start a chat with BotFather and use the /start command.
Use the /newbot command to create a new bot, and follow the prompts to name it and get the token.
Step 2: Create a Webhook to Communicate with Telegram
You'll need a server to handle messages between OpenSimulator and Telegram. Here's a simple example using Python and Flask.

python

from flask import Flask, request
import requests

app = Flask(__name__)

TELEGRAM_BOT_TOKEN = 'YOUR_TELEGRAM_BOT_TOKEN'
TELEGRAM_CHAT_ID = 'YOUR_TELEGRAM_CHAT_ID'

@app.route('/webhook', methods=['POST'])
def webhook():
data = request.json
message = data['message']['text']
send_message_to_sl(message)
return "ok", 200

def send_message_to_telegram(message):
url = f"https://api.telegram.org/bot{TELEGRAM_BOT_TOKEN}/sendMessa..."
payload = {
'chat_id': TELEGRAM_CHAT_ID,
'text': message
}
requests.post(url, json=payload)

def send_message_to_sl(message):
# This function should handle sending the message to Second Life.
pass

if __name__ == '__main__':
app.run(port=5000)
Set up the webhook URL for your bot using:

bash
https://api.telegram.org/bot/setWebhook?url=/webhook
Step 3: Create the LSL Script in OpenSimulator
The following LSL script will send a message to the webhook on your server. The server will then send this message to the Telegram channel.

lsl

string webhook_url = "http:///webhook";

default
{
state_entry()
{
llOwnerSay("Telegram chat bot script active.");
}

touch_start(integer total_number)
{
llOwnerSay("Please type your message to send to Telegram:");
}

listen(integer channel, string name, key id, string message)
{
// Prepare the message
string json = llEscapeURL("{\"message\": {\"text\": \"" + message + "\"}}");

// Send the message to the webhook
llHTTPRequest(webhook_url, [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/json"], json);

llOwnerSay("Message sent to Telegram: " + message);
}

on_rez(integer start_param)
{
llResetScript();
}

changed(integer change)
{
if (change & CHANGED_OWNER)
{
llResetScript();
}
}
}
Step 4: Set Up a Listener in LSL for Telegram Messages
If you want to receive messages from Telegram in OpenSimulator, you need to implement the send_message_to_sl function on your server and an HTTP server in LSL to listen for incoming messages.

Example of setting up an HTTP server in LSL:

lsl

default
{
state_entry()
{
llOwnerSay("Telegram listener script active.");
llHTTPRequest(webhook_url, [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/json"], json);
}

http_request(key request_id, string method, string body)
{
if (method == "POST")
{
// Decode the incoming message
string message = llJsonGetValue(body, ["message", "text"]);

// Send the message to local chat
llSay(0, "Telegram: " + message);
}
}
}
This setup involves running a server to handle the communication between OpenSimulator and Telegram. The example assumes familiarity with web server deployment. For a more robust solution, consider using a cloud service to host the server.

FreshVirtualWorld: https://www.youtube.com/watch?v=zejVrprx1uU 6 months ago

Join us in Wizardry at The School of Magic. Learn to fight evil hackers, evil scripters, greifers, and maligned individuals.


FallenAngel Absent: https://www.youtube.com/watch?v=BN1WwnEDWAM :-D 6 months ago
People have been going to cyberdatastorm.com:8002:Wizardry and going to the 5th floor of my little castle and trying to enter the locked doors of the computer room. Some have even zoomed their cameras through the locked doors into the server room and into the locked server cabinet, and tried to mess with my overwatch sentry security server. Please do not do this anymore. It tells me when you do that and I will ban you from Wizardry which I hate to do. It is very annoying to me when you do this. Wizardry is there to offer up free stuff i create to people, and there is no reason or need for you to go through all that trouble to turn off my sim security. Thank you.

LeonitasLionheart: That is a perfectly reasonable request and sorry to hear people been messing around like that. Thank you for sharing the things you do share, and ty for speaking calmly and thoughtfully to the masses ... 6 months ago

Life Guard

Cozy little coves at Catena di Isole. Everyone is welcome here three.hills.grid.outworldz.net:8002:Catena di Isole


Lillysparks: that is adorbs I gotta come check it out tomorrow=) 6 months ago

I dance only for you, Glenn, the friendliest, likeable man in Opensimworld.^^


Xenon Darrow: 🪇💃🪇👯🪇🧚🪇 6 months ago
Hello all friends, tonight starting at 12:30 SLT, we have a special event planned that you will not want to miss! DJ Luna will be with us to make us dance and have fun, creating an enchanted atmosphere full of romance. Get ready to twirl on the dance floor, wearing your most elegant and sophisticated dresses.
Love is what makes the world move, and we want to celebrate it with you in an unforgettable evening. Imagine soft lights, engaging music and the magic of a starry night enveloping us all. It will be a perfect opportunity to let loose, meet friends old and new, and create wonderful memories.
Remember that elegant outfits are required to add a touch of class and make the event even more special. Get out your best dresses, polish your dancing shoes, and get ready to experience an extraordinary evening of love and music.
We look forward to seeing you all there, ready to celebrate and have fun with us!
We look forward to seeing you! https://opensimworld.com/hop/91717

Angeldark: E...noi balliamoooooooooooooooooooooooooooooo!!! Siete tutti invitati! 6 months ago
Un lugar precioso para ser disfrutado. Precioso¡¡¡¡¡¡¡¡¡¡

A beautiful place to be enjoyed. Precious

Un bellissimo posto da godere. Prezioso

Un bel endroit à apprécier. Précieux

Ein wunderschöner Ort zum Genießen. Wertvoll

https://opensimworld.com/hop/91197


At the end of this mystifying walkway you will find your zodiac sign painted on a rock. Please come grab one - or all 12 if you want to. I am a Leo ... what is your sign?


Andremus Miklos: Saggittarius, said to be the perfect match for Leos! lol 6 months ago
This is the new Opensim Fishing area that I just placed here.
You may come on down and try it out for yourself!
Non-monetary SUPER gifts coming your way! ;)

You will notice the Wolf Territories Blimp floating up above.
For your convenience, we have boats out in the water for you to fish in.
There are chairs on the board walk in the center.
If you would like some solitude, thee are stumps and rocks along the edges for you to fish with yourself or a partner or friend.
You can see Bobby our AI that will answer all your questions about Wolf Territories! He tells poems, stories, etc! ;)
Bobby is so much fun! He's chock full of information ;)
There is also a destination board. Just click on that and it will bring you to any destination on Wolf Territories.
Come on over and ENJOY friendship & fun! ;)

Take this link here directly to the fishing area:
hop://grid.wolfterritories.org:8002/Magical Fairies Pass 4/235/225/23

News! hop://astralia.eu:8002/TierraDeVolcanes/127/314/3226


LeonitasLionheart: Oh dear. Seems someone has stolen half of these ladies dresses. Would you wish to report a crime? La policia? ;) teasing... Great work! 6 months ago
A mother is a remarkable blend of strength, warmth, and wisdom; she is the heart that beats at the core of a family, nurturing and guiding with a love that’s both fierce and tender. She’s a protector, a confidante, and a source of endless encouragement. On Mother’s Day, we celebrate these extraordinary women who give so much of themselves to light the way for the next generation
HAPPY MOTHER'S DAY TO ALL THE MOTHERS IN OUR VIRTUAL WORLD AND RL :)

Carmen Jewel: If its not Mother's day in your part of the world accept this tribute as a celebration of a mothers love :) 6 months ago
Dear friends,
What a wonderful party it was on Tuesday night! Our DJ Anamari transported us to an extraordinary Sevillian Fiesta, giving us a one-of-a-kind experience! And what a wonder it was to explore the inspiring beauty of the city of Seville, a true jewel of Andalusia.
The details of the decorations enveloped us in a spell, recreating the atmosphere of Seville's fascinating plazas. Each element was a tribute to the artistic and cultural richness of this thousand-year-old city. The vibrant colors, soft lighting and intricate details transported us directly into the picturesque streets of this magical city.
And what about our incredible Anamari? With her artistry, she paid homage to Seville's rich musical tradition, making us dance to the enthralling rhythms of Spanish and Sevillian music. She led us on an aural journey through melodies that evoke the passions and emotions of this wonderful city.
Thank you from the bottom of my heart, Anamari, for giving us a taste of a little piece of your fascinating land, Spain! Your performance was a true celebration of the culture and joie de vivre that characterize Seville.
I can only thank each of you for once again making that evening so special.
I look forward to meeting again soon for more similar adventures, immersing ourselves once again in the beauty and energy of other beautiful evenings like this one.
See you again soon!
An easier way to update dreamgrid...
1.) Copy the entire dreamgrid folder.
2.) Rename the copy to whatever version of dreamgrid is inside it like this as a folder name ---> DreamGrid v. 5.24
3.) Name the other original copy "DreamGrid Production"
4.) Download and unzip the latest dreamgrid into the folder named "DreamGrid Production"
This way if there is ever a problem You can easily delete the current DreamGrid - Production folder, and then rename the last running copy to DreamGrid - Production. This way you will always have a running production environment with several backups of different versions of good grid environments.
Why you ask? Because if a bug bubbles up through the code, you may wish you could just delete the latest beta and just go back to the latest one that was running fine. This technique can save you hours of pain. I suggest you try it.

Hallo ihr Lieben,
heute ganz SPONTAN Querbeet-Party im Tosca !!!!!!!!!!!!
: WER : Nasti
: WAS : Querbeet
: WO : TOSCA
: WANN : 19.30 UHR !!!!!


Belze Cherub: PARTY PARTY PARTY 7 months ago
It's scientifically proven that laughter strengthens the immune response!

Hey hey hey it is (or will be) the 5th of May and ZW pushed the boat out for WORLD LAUGHTER DAY!!!!!! Another fabulous evening of entertainment.

LINEUP

10am - DJ TANYA
11am - HAZEL ITO
Noon - NORA COLA
1pm - MATTIE
2pm - ROGUE GALAXY
3pm - EDISON and VINCENT

Do your body some good and enjoy some jokes and great music. It will be another night to remember so go Zeta go Zeta go Zeta rarara!

TailorNova: Great Party 7 months ago

and... one new ride for the fun.... for speed try the orange snake car .... ;-)


LeonitasLionheart: YESSSSSSSSSSSS....SSSSSSSSSS....i soooo need thisssssss in my life! 7 months ago
Dear friends of fairy tales
Cloudshead Worldheart
will be closed for a few days,
due to a major grid update
As soon as all work is completed,
we will let you know!
Thank you for your understanding!
Warm greetings
Lampithaler
______________________________________
Liebe Märchenfreunde,
Cloudshead Worldheart
wird für ein paar Tage geschlossen sein,
wegen einem großen Grid Update.
Sobald alle Arbeiten abgeschlossen sind,
werden wir es euch wissen lassen!
Vielen Dank für euer Verständnis!
Herzliche Grüße
Lampithaler
its officially ready, come down to three rivers and check out our small shops on diff street corners, they are scattered round town.. enjoy exploring and finding our lil treasures


hop://login.osgrid.org/Three%20Rivers/81/155/22

Check out Lone Wolf's Wolf Territories Grid for the best Modern Virtual Land!
Yes folks! Come on down to Lone Wolf's today for some amazing offers, tools and fun!


https://www.wolf-grid.com/


Now, with a HUD :)

News! hop://astralia.eu:8002/TierraDeVolcanes/156/475/3224


Aurora Starchild: Ohhh esas capas de materials como se notan 7 months ago

#newbody #davissbody #ultimatebom #arkhamgrid

hg.osgrid.org:80:Mech Lab

The Mech Lab Egg Hunt is on! Gear up and scramble to find 4 hidden eggs scattered around the Lab. Each egg cracks open to reveal a different awesome Mech Model!

Get ready to search high and low, pilots!


Your Clues:
Egg 1: G-Suit Gambit

Amongst the gear that pilots don, a hidden Mech awaits, ready to spawn.

Egg 2: Fountain Fortune

By the water's flowing gleam, a Mech Model waits in a parkland dream.

Egg 3: Secret Lab Stash

Deep within the hidden Levels lair, a Mech Model's secrets wait to share.

Egg 4: Hangar Hideaway

Soar through the hangar high and wide, a Mech Model's waiting, where giants reside.

Happy Weekend!
~MECH LAB.

hg.osgrid.org:80:Mech Lab


LeonitasLionheart: very cool and ty! they look amazing. are you working towards making them fully operational some day...scripted, animated, fireable weapons with damage, etc? so cool, either way. long as they aren't u... 7 months ago

----- NEW -----

A new outdoor piece, a beach cabana that sits up to 4 people!
More than 1300 animations in several configurations.
Comes with a HUD for the textures.

Note: Please click once on vendor, and WAIT. Specially if HG-ing. Spamming it will only send debug to all region.

Uber: hop://playground.darkheartsos.com:8002/Darkhearts Boutiques/392/352/23
This is called a lectica. It's a small bed that you are carried on by 2 npc's. Satyr Aeon built the original one, I fixed it up some here and there. You can drive it around like a car and up to 4 people can ride with you. :) You can make the npc's run by pushing the pgUp button. Here my NPC servants are walking across a narrow rope bridge carrying me. hehehe Satyr Aeon made this, I just tweaked some scripts and rebuilt the bed. :) Now with the new scripts you can link whatever you want to it, and it won't mess up the npc's because it gets their named prims prim numbers through script. Also I've fixed some issues with the original code. But credit should go to Satyr as he made it. There's one at wizardry you can copy for free. cyberdatastorm.com:8002:Wizardry And yes their legs actually walk when you are moving it around.

Jared Seda: Very cool! Its so cool what everyone does with NPC. I liked the way you set up those ones at the castle you showed me. 7 months ago
This THING. It's a globe of the sky which turns around the flat earth. A sun & moon also turn around the flat earth. The earth (map of your sim?) sits on the backs of 4 elephants which are standing on a turtle. I found this and it was very old and very broken. I fixed it. It is now at the school of magic on wizardry for you to copy. Note: The school of magic is not the magic store, it's the building you can fly over to beside the castle.

New user boards at the Welcome Area

2 New avatars you can found them at LFG11 Littlefield Anniversary Expo hop://lfgrid.com:8002/Littlefield%20Anniversary/485/355/22 Till Abril 30 (after at Mexico Lindo ) -

Just added 40 more avatars to the 200. Be a superhero or mech or spongebob. All free...never pay for things in opensim!


Jerralyn Franzic: Love it! Grabbed a few figures, including Beverly Crusher and the Peekachoo bot. Thanks again! =) 7 months ago
A visit from @FerdFrederix today. Bringing more magic to the Sakuragawa region! He added horse stables and horses so that we can ride and explore this 3x3! He tested it out and said you can ride the whole way even going over the bridges! After your ride, you might be hungry so stop in at the Ramen House next to the Fish Market! Thank you, Ferd! three.hills.grid.outworldz.net:8002:Zensational https://youtu.be/okFpz1RpmnU?si=VHGHaXYU8cAk9a2Z

WTF?.... I'd rather leave this to your imagination.......


LeonitasLionheart: Someone is bound to get lucky, sooner or later... 8 months ago

We are making progress at Zensational's Sakuragawa. @FerdFrederix has been adding cool touches throughout the region, come see his fishing shack! three.hills.grid.outworldz.net:8002:Zensational

I felt the earth move under my feet in NYC today. Thank goodness my Brownstones in Indigo Industries are still standing.

We are so not used to earthquakes on the east coast but this is the second one this year. The one we had in January however I didn't feel at all but people up in the Bronx did. The one today I felt it. And it lasted too long to me.
Did any of you feel the quake today in NYC or NJ or PA or anywhere in the NorthEast of the United States?

Well it is definitely safe here at Indigo Industries in Indigo Blue Realm on Wolf Territories.
We have furnished apartments.Transitory housing, free for new residents of Wolf Territories for 10 days while you decide where you would like to call home. 300 personal prims, parcel security, radio, welcoming community. Come take a look. If you want to stay with us after 10 days. Take a look at our Amethyst or Lapis Lazuli Villages.

Hyacinth: We get quite a few 2.0 - 3.0 magnitude earthquakes in New Hampshire per year, and all around New England. There was a 5.6 in 1940.. and in the past there were several 6.5 earthquakes. The Pilgrims ... 8 months ago
Loading...