BGP internal vs external
iBGP is responsible for advertising networks to all BGP routers within an AS. This includes BGP routers that may be on the edge of the AS and may have connections to other AS'es.
These edge BGP routers will use eBGP to create peerings with routers on other AS'es. All internal networks that have been learned via iBGP can then be shared between AS'es over such eBGP peerings. Thus, eBGP routers are responsible for advertising their internal networks learned via iBGP to other eBGP routers in other AS'es.