![]() |
PhpBotFramework
1.0.0
A framework for Telegram Bots' APIs.
|
Helper methods. More...
Functions | |
| static | DanySpin97\PhpBotFramework\Utility::getHashtags (string $string) |
| Get hashtag contained in a string. More... | |
| static | DanySpin97\PhpBotFramework\Utility::removeUsernameFormattation (string $string, string $tag) |
| Remove html formattation from telegram usernames in string. More... | |
Helper methods.
|
static |
Get hashtag contained in a string.
Check hashtags in a string using regex. All valid hashtags will be returned in an array. Credis to trante.
| $string | The string to check for hashtags. |
|
static |
Remove html formattation from telegram usernames in string.
Remove the $modificator html formattation from a message containing telegram username, to let the user click them.
| $string | to parse. |
| $tag | Formattation tag to remove. |
1.8.12