package com.lion.lionwebsite.Configuration;

import com.lion.lionwebsite.Domain.*;
import com.lion.lionwebsite.Message.*;
import com.pengrad.telegrambot.TelegramBot;
import com.pengrad.telegrambot.model.Chat;
import com.pengrad.telegrambot.model.Message;
import com.pengrad.telegrambot.model.MessageEntity;
import com.pengrad.telegrambot.response.SendResponse;
import com.zaxxer.hikari.HikariConfig;
import org.springframework.aot.hint.annotation.RegisterReflectionForBinding;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.pengrad.telegrambot.model.User;

@Configuration
@RegisterReflectionForBinding(classes = {CustomConfiguration.class,
        GalleryForQuery.class, Gallery.class, GalleryTask.class, HikariConfig.class,
        PageNameCache.class, ShareFile.class, Tag.class, TagMark.class, User.class,
        SendResponse.class, Message.class, com.pengrad.telegrambot.model.User.class,
        Chat.class, MessageEntity.class,
        AbstractMethodError.class, DeleteGalleryMessage.class, DownloadPostMessage.class, DownloadStatusMessage.class,
        GalleryPageQueryMessage.class, GalleryRequestMessage.class, IdentityMessage.class, MaintainMessage.class, ResponseMessage.class})
public class CustomBean {

    @Bean
    public TelegramBot getTelegramBot(){
        return new TelegramBot("5222939329:AAHa6l9ZuVVdNSDLPI_H-c8O_VgeOEw5plA");
    }
}
