isUsername

Check the given username format based on telegram username syntax

Arguments
Name Type Description Required
username The username which you want to check yes

Output : bool

Static or normal : Static

Examples :

tools::isUsername('BPT_CH');
tools::isUsername('@BPT_CH'));