Skip to content

Restrict BOT Access #527

Closed
Closed
@asif-rahman

Description

@asif-rahman

Required Information

  • Operating system: Windows
  • PHP version: 5.12
  • PHP Telegram Bot version: Latest
  • Using MySQL database: yes
  • MySQL version:
  • Update Method: Webhook
  • Self-signed certificate: yes
  • RAW update (if available):

Expected behaviour

Actual behaviour

Steps to reproduce

Extra details

I want to restrict my BOT to certain groups only. I can do that by checking the chat id against the group id. But the problem is I have too many commands and I don't want to add access code to each of the PHP scripts.
I want to implement the code on a single page, like the hook. But how can I do that in the hook or in any other single page?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions