Create a photo message from a link to a YouTube video with a preview and the ability to set the start of the viewing. You can also replace a localized title with your own description.
Send the bot a link via a regular or inline message and get the result. If you add time after the link, it will set the beginning of the viewing. Any other text that follows the link will be used as your own title for the video.
Copyright 2022-2024 Vitalij Berdinskih
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.