A Senegalese opposition politician was on Tuesday charged with committing an offence against the president, his lawyer said, in a case over recent comments he made about President Macky Sall.