Possible way, don't know if that's what they really do:
Heat the glass till it's soft like taffy, and put the item in the bottle.
The put the bottle in a mold, and press the glass back into shape, and let it cool.
Heat the glass till it's soft like taffy, and put the item in the bottle.
The put the bottle in a mold, and press the glass back into shape, and let it cool.
Whether that's actually what they do, I don't know.