Skip to content

sendToActiveChats works only with sendMessage action #666

Closed
@thestanislav

Description

@thestanislav

Required Information

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

Expected behaviour

Request::sendToActiveChats('sendPhoto', ['photo' => Request::encodeFile('path/to/photo')])

Actual behaviour

Exception: Method "sendPhoto" not found in class Request

Steps to reproduce

Extra details

None of "send file" methods except sendMessage exists in class Request
It uses __callStatic to execute those methods

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