Gamma rays from accreting black holes