Skip to content

Method "sendPhoto" not found in class Request. #897

@0xEAB

Description

@0xEAB

Required Information

  • Operating system: Linux
  • PHP version: 7.1.22 (64bit)
  • PHP Telegram Bot version: 0.54.0
  • Using MySQL database: yes
  • MySQL version: 10.1.29-MariaDB
  • Update Method: Webhook
  • Self-signed certificate: no

Expected behaviour

Photo is sent.

Actual behaviour

Method "sendPhoto" not found in class Request.

Steps to reproduce

Longman\TelegramBot\Request::sendToActiveChats(
    'sendPhoto',
    ['photo' => Longman\TelegramBot\Request::encodeFile($row['path'])],
    [
        true, // Send to chats (group chat)
        true, // Send to chats (super group chat)
        true, // Send to users (single chat)
        null, // 'yyyy-mm-dd hh:mm:ss' date range from
        null  // 'yyyy-mm-dd hh:mm:ss' date range to
    ]
);

Extra details

Fix for #666 didn't fix this

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