Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getParameter() to IncomingMessage class to enable deep linking #2

Open
johntiror opened this issue Sep 26, 2017 · 2 comments
Open

Comments

@johntiror
Copy link

johntiror commented Sep 26, 2017

Some drivers have a deep linking mechanism, that allows for passing additional parameters to the bot on startup. It could be a command that launches the bot — or an auth token to connect the user's Telegram account to their account on some external service.

class IncomingMessage
{
    /**
    * @return string
    */
    public function getParameter() {
    }
}

This function MUST return the parameter passed in the link.

Note:

  1. Telegram: https://core.telegram.org/bots#deep-linking
  2. Facebook: https://developers.facebook.com/docs/messenger-platform/discovery/m-me-links
@BerezhniyDmitro
Copy link

+1

1 similar comment
@ghost
Copy link

ghost commented Oct 21, 2020

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants