Skip to content

feat: Set bot avatar#99

Merged
Linwenxuan04 merged 1 commit into
LagrangeDev:mainfrom
dogdie233:feat-set-bot-avatar
Mar 20, 2026
Merged

feat: Set bot avatar#99
Linwenxuan04 merged 1 commit into
LagrangeDev:mainfrom
dogdie233:feat-set-bot-avatar

Conversation

@dogdie233
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 19, 2026 16:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new public BotContext extension method to support setting the bot’s avatar by uploading an image stream via the Highway upload path.

Changes:

  • Add SetBotAvatar(this BotContext context, Stream stream) to OperationExt.
  • Implement avatar-setting as a direct HighwayContext.UploadFile(..., commandId: 90, extendInfo: empty) call.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +48 to +49
public static Task<bool> SetBotAvatar(this BotContext context, Stream stream) =>
context.HighwayContext.UploadFile(stream, 90, Array.Empty<byte>());
@Linwenxuan04 Linwenxuan04 merged commit e62a780 into LagrangeDev:main Mar 20, 2026
13 of 16 checks passed
Bemly pushed a commit to Bemly/CharonAnchor that referenced this pull request May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants