跳到主要内容

Telegram

callback_query

参数名称类型
callback_queryfrom pyrogram.types.bots_and_keyboards.callback_query import CallbackQuery
raw_eventfrom typing import Dict
clientfrom pyrogram.client import Client
from pyrogram.types.bots_and_keyboards.callback_query import CallbackQuery
from typing import Dict
from pyrogram.client import Client


class MyHandler:
async def callback_query(
self,
callback_query: CallbackQuery,
raw_event: Dict,
client: Client,
):
pass

chosen_inline_result

参数名称类型
raw_eventfrom typing import Dict
clientfrom pyrogram.client import Client
from typing import Dict
from pyrogram.client import Client


class MyHandler:
async def chosen_inline_result(
self,
raw_event: Dict,
client: Client,
):
pass

edited_message

参数名称类型
messagefrom pyrogram.types.messages_and_media.message import Message
botfrom pepperbot.adapters.telegram.api import TelegramPrivateBot
chainfrom pepperbot.core.message.chain import MessageChain
raw_eventfrom typing import Dict
clientfrom pyrogram.client import Client
from pyrogram.types.messages_and_media.message import Message
from pepperbot.adapters.telegram.api import TelegramPrivateBot
from pepperbot.core.message.chain import MessageChain
from typing import Dict
from pyrogram.client import Client


class MyHandler:
async def edited_message(
self,
message: Message,
bot: TelegramPrivateBot,
chain: MessageChain,
raw_event: Dict,
client: Client,
):
pass

group_message

参数名称类型
messagefrom pyrogram.types.messages_and_media.message import Message
botfrom pepperbot.adapters.telegram.api import TelegramGroupBot
chainfrom pepperbot.core.message.chain import MessageChain
raw_eventfrom typing import Dict
clientfrom pyrogram.client import Client
from pyrogram.types.messages_and_media.message import Message
from pepperbot.adapters.telegram.api import TelegramGroupBot
from pepperbot.core.message.chain import MessageChain
from typing import Dict
from pyrogram.client import Client


class MyHandler:
async def group_message(
self,
message: Message,
bot: TelegramGroupBot,
chain: MessageChain,
raw_event: Dict,
client: Client,
):
pass

inline_query

参数名称类型
inline_queryfrom pyrogram.types.inline_mode.inline_query import InlineQuery
raw_eventfrom typing import Dict
clientfrom pyrogram.client import Client
from pyrogram.types.inline_mode.inline_query import InlineQuery
from typing import Dict
from pyrogram.client import Client


class MyHandler:
async def inline_query(
self,
inline_query: InlineQuery,
raw_event: Dict,
client: Client,
):
pass

private_message

参数名称类型
messagefrom pyrogram.types.messages_and_media.message import Message
botfrom pepperbot.adapters.telegram.api import TelegramPrivateBot
chainfrom pepperbot.core.message.chain import MessageChain
raw_eventfrom typing import Dict
clientfrom pyrogram.client import Client
from pyrogram.types.messages_and_media.message import Message
from pepperbot.adapters.telegram.api import TelegramPrivateBot
from pepperbot.core.message.chain import MessageChain
from typing import Dict
from pyrogram.client import Client


class MyHandler:
async def private_message(
self,
message: Message,
bot: TelegramPrivateBot,
chain: MessageChain,
raw_event: Dict,
client: Client,
):
pass

raw_update

参数名称类型
raw_eventfrom typing import Dict
clientfrom pyrogram.client import Client
from typing import Dict
from pyrogram.client import Client


class MyHandler:
async def raw_update(
self,
raw_event: Dict,
client: Client,
):
pass