Thanks for comments guys!
Lightning photos are taken with longer time of exposure. I use a remote control and a camera on tripod.
Astronomy photos are taken normally like all photos, again with longer time of exposure. No filter needed, well except for the Sun I used appropriate filter.
Thanks...