discord py send message to channel by id code example
Example 1: how to send a message in a specific channel discord.py
channel = client.get_channel(12324234183172)
await channel.send('hello')
Example 2: how to send a message in a specific channel discord.py
message = await channel.send('hmm…')
message_id = message.id